Skip to content

Commit 1c93cdc

Browse files
committed
Convert to lower case when comparing
1 parent 6890d08 commit 1c93cdc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/rum-core/src/domain/action/getActionNameFromElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function getTextualContent(
255255
userProgrammaticAttribute,
256256
privacyEnabledActionName
257257
)
258-
if (treeWalkerText !== text.replace(/\s+/g, ' ').trim()) {
258+
if (treeWalkerText.toLowerCase() !== text.replace(/\s+/g, ' ').trim().toLowerCase()) {
259259
addTelemetryDebug('tree-walker-text-diff', { text, treeWalkerText })
260260
}
261261
return treeWalkerText

0 commit comments

Comments
 (0)