Skip to content

Conversation

unflxw
Copy link
Contributor

@unflxw unflxw commented Sep 30, 2025

On the SAFARI_FF_PATH regular expressions, match the whole line from beginning to end, repeating the matching at the beginning of the line that is done by the IS_SAFARI_FF regular expression.

Split the CHROME_PATH regular expression into two variants of it, with and without a function name. When the function name is present, the path appears in parenthesis, making it easier to delimit it. Attempt to match the version where the path is in parenthesis first, then the version where the path stands alone.

This fixes a bug where the regular expressions would only match the last space-separated segment of a path containing spaces.

@unflxw unflxw requested review from lipskis and tombruijn September 30, 2025 10:11
@unflxw unflxw self-assigned this Sep 30, 2025
@unflxw unflxw added the bug Confirmed and unconfirmed bugs reported by us and customers. label Sep 30, 2025
Copy link
Member

@tombruijn tombruijn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is broken on a missing toBacktraceMatcher value.

@unflxw
Copy link
Contributor Author

unflxw commented Sep 30, 2025

The test is broken on a missing toBacktraceMatcher value.

Ah, needs rebasing on top of #660, which I will merge now. It worked locally because I was working on top of it.

@unflxw unflxw force-pushed the fix-match-backtrace-path-spaces branch 3 times, most recently from 9541de3 to 161ad51 Compare September 30, 2025 11:57
@unflxw unflxw requested a review from tombruijn September 30, 2025 12:11
On the `SAFARI_FF_PATH` regular expressions, match the whole line
from beginning to end, repeating the matching at the beginning of
the line that is done by the `IS_SAFARI_FF` regular expression.

Split the `CHROME_PATH` regular expression into two variants of it,
with and without a function name. When the function name is present,
the path appears in parenthesis, making it easier to delimit it.
Attempt to match the version where the path is in parenthesis first,
then the version where the path stands alone. On both variants, like
with `SAFARI_FF_PATH`, match the whole line from beginning to end.

This fixes a bug where the regular expressions would only match the
last space-separated segment of a path containing spaces.
@unflxw unflxw force-pushed the fix-match-backtrace-path-spaces branch from 161ad51 to 51783cb Compare September 30, 2025 12:23
@unflxw unflxw merged commit 5248f19 into main Sep 30, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Confirmed and unconfirmed bugs reported by us and customers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants