Commit 8a881af7 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Escape pattern before compiling.

parent aff1839e
......@@ -1402,7 +1402,7 @@ def search_files(directory, pattern):'Searching: {}, pattern: {}'.format(directory, pattern))
# create regular expression
pattern = re.compile(pattern)
pattern = re.compile(re.escape(pattern))
# recursively search for files matching the pattern
matches = []
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment