Skip to content

Commit 172e1a5

Browse files
committed
Create way less warnings by letting regex go before case_check()
1 parent 439ee57 commit 172e1a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Python/convert.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,14 @@ def create_converted_file(input_file_path, output_file_path, input_folder_path,
125125
all_lines = apply_conversion_rules(all_lines)
126126

127127
# Case matching must be done after conversion, otherwise tons of errors wil be generated
128-
all_lines = case_check.case_check(all_lines, input_file_path, output_file_path)
128+
# all_lines = case_check.case_check(all_lines, input_file_path, output_file_path)
129129

130130
if not cfg.sg.user_settings_get_entry("skip_conversion"):
131131
all_lines = regex_rules.regex_replace(all_lines)
132132

133+
# Case matching must be done after conversion, otherwise tons of errors wil be generated
134+
all_lines = case_check.case_check(all_lines, input_file_path, output_file_path)
135+
133136
file_out.write(all_lines)
134137
# except:
135138
# shutil.copyfile(input_file_path, output_file_path)

0 commit comments

Comments
 (0)