Skip to content

Commit 4e2c1c0

Browse files
committed
split regex
1 parent eee5ed5 commit 4e2c1c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sentry_sdk/integrations/gnu_backtrace.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313

1414
# function is everything between index at @
1515
# and then we match on the @ plus the hex val
16-
FUNCTION_RE = r"[^@]+?)\s+@\s+0x[0-9a-fA-F]+"
16+
FUNCTION_RE = r"[^@]+?"
17+
HEX_ADDRESS = r"\s+@\s+0x[0-9a-fA-F]+"
1718

1819
FRAME_RE = r"""
19-
^(?P<index>\d+)\.\s+(?P<function>{FUNCTION_RE}(?:\s+in\s+(?P<package>.+))?$
20+
^(?P<index>\d+)\.\s+(?P<function>{FUNCTION_RE}){HEX_ADDRESS}(?:\s+in\s+(?P<package>.+))?$
2021
""".format(
2122
FUNCTION_RE=FUNCTION_RE,
23+
HEX_ADDRESS=HEX_ADDRESS,
2224
)
2325

2426
FRAME_RE = re.compile(FRAME_RE, re.MULTILINE | re.VERBOSE)

0 commit comments

Comments
 (0)