Skip to content

Commit d5cb9a7

Browse files
authored
Simpler regex for a multi-line capture group (#5925)
1 parent 52ed262 commit d5cb9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/lldbinit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def RunCommand(cmd: str, print_command: bool = True) -> Any:
3333

3434
# Matches the output of `print Dump(...)` and captures the stuff from inside the
3535
# std::string while discarding the std::string type.
36-
dump_re = re.compile('\\(std::string\\) "((:?.|\n)+)"', re.MULTILINE)
36+
dump_re = re.compile(r'\(std::string\) "([\s\S]+)"', re.MULTILINE)
3737

3838

3939
# A helper to ease calling the Dump() free functions.

0 commit comments

Comments
 (0)