Skip to content

Conversation

@anshikag-adobe
Copy link

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

JIRA: https://jira.corp.adobe.com/browse/FORMS-23719

// counts metrics per each group
const match = source.match(/form[#.](\w+)/);
// Unescape CSS escape sequences (e.g., \35 -> 5)
const unescapedSource = source.replace(/\\([0-9a-fA-F]{1,6})\s?/g, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
Copy link
Contributor

Choose a reason for hiding this comment

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

can you share an example please, where did you encounter this.

Copy link
Contributor

Choose a reason for hiding this comment

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

can you confirm if the document.querySelector works after this change ?

Copy link
Author

@anshikag-adobe anshikag-adobe Jan 27, 2026

Choose a reason for hiding this comment

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

@05rahulsingh
Example:
form has id 5464aa16
form source in rum data: #container-a89bac44d9 form#\\35 464aa16

hence the regex here doesn't match and the formSource is not sent ahead.

Copy link
Author

Choose a reason for hiding this comment

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

@vdua I checked querySelector doesn't work after this change, fixing it in few.

Copy link
Author

Choose a reason for hiding this comment

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

@vdua I have changed the regex only to match both sourceIDs with or without hexadecimal number

@github-actions
Copy link

github-actions bot commented Jan 27, 2026

This PR will trigger a patch release when merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants