소스 검색

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.