Преглед на файлове

Simpler regex for a multi-line capture group (#5925)

Dana Jansens преди 8 месеца
родител
ревизия
d5cb9a7144
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      scripts/lldbinit.py

+ 1 - 1
scripts/lldbinit.py

@@ -33,7 +33,7 @@ RunCommand(f"settings append target.source-map /proc/self/cwd {project_root}")
 
 # Matches the output of `print Dump(...)` and captures the stuff from inside the
 # std::string while discarding the std::string type.
-dump_re = re.compile('\\(std::string\\) "((:?.|\n)+)"', re.MULTILINE)
+dump_re = re.compile(r'\(std::string\) "([\s\S]+)"', re.MULTILINE)
 
 
 # A helper to ease calling the Dump() free functions.