Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle newlines in classnames #919

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

pauldambra
Copy link
Member

related to PostHog/posthog#19068

The site in question has \r\n style new lines and runs of whitespace in the className on the element that is not being captured correctly.

Switching how we split classes out of elements can quickly support these unexpected class strings.

@pauldambra pauldambra added the bump patch Bump patch version when this PR gets merged label Dec 4, 2023
@pauldambra pauldambra requested a review from a team December 4, 2023 23:46
Copy link

github-actions bot commented Dec 4, 2023

Size Change: +1 B (0%)

Total Size: 744 kB

Filename Size Change
dist/array.full.js 176 kB +1 B (0%)
ℹ️ View Unchanged
Filename Size
dist/array.js 117 kB
dist/es.js 117 kB
dist/exception-autocapture.js 12 kB
dist/module.js 118 kB
dist/recorder-v2.js 104 kB
dist/recorder.js 58.4 kB
dist/surveys.js 41.5 kB

compressed-size-action

Copy link
Collaborator

@benjackwhite benjackwhite left a comment

Choose a reason for hiding this comment

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

👍 👍 👍 👍

@pauldambra pauldambra merged commit 3b3a344 into master Dec 5, 2023
13 checks passed
@pauldambra pauldambra deleted the fix/handle-newlines-in-classnames branch December 5, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants