Commits

Rune Halvorsen committed 3b77c4f

Fixed regexes so it detects ui strings with numbers in them

  • Participants
  • Parent commits 8cd8b79

Comments (0)

Files changed (1)

File tools/find_unused_strings.py

 import re
 import itertools
 
-stringidre = re.compile(r"""ui_strings\.([A-Z_]+)""")
-stringdatare = re.compile(r"""ui_strings\.([A-Z_]+)\s*=\s*(.*?);""")
+stringidre = re.compile(r"""ui_strings\.([A-Z_0-9]+)""")
+stringdatare = re.compile(r"""ui_strings\.([A-Z_0-9]+)\s*=\s*(.*?);""")
 
 def collect_used_string_ids(basedir):
 	found = set()