Skip to content

Commit

Permalink
fix: fixed fluentscan.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
krypt0nn committed Nov 13, 2023
1 parent e6076ef commit cac3497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluentscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def get_line_num(file,pattern):
output += f"[en/{all_entries[i][0]}]\n [Unused]\n"
output += f" {all_entries[i][1]} | {i} = {every_variable[i].strip()}\n"

output = re.sub("\[en", "\n[en", output)
output = re.sub("\\[en", "\n[en", output)

if not output:
print("Nothing is unused")
Expand All @@ -187,7 +187,7 @@ def get_line_num(file,pattern):
output += f"[{missing_entries[i]}]\n [Missing]\n"
output += f" {script_entries[i][1]} | {i}\n"

output = re.sub("\[src/", "\n[src/", output)
output = re.sub("\\[src/", "\n[src/", output)
if not output:
print("Nothing is missing")
sys.exit()
Expand Down

0 comments on commit cac3497

Please sign in to comment.