diff --git a/ensure_sorted.py b/ensure_sorted.py index 04951eea..9332366a 100755 --- a/ensure_sorted.py +++ b/ensure_sorted.py @@ -74,7 +74,7 @@ def main(): categories.append(category) # This is also a category elif lines[i].startswith("## –"): - category_name = re.findall("(?<=##\s–\s).*?(?=\s–)", lines[i])[0] + category_name = re.findall("(?<=##\\s–\\s).*?(?=\\s–)", lines[i])[0] category = Category(category_name) categories.append(category) # This is an app @@ -101,4 +101,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main()