Skip to content

Commit 9be8e60

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ function getTextualContent(
255255
userProgrammaticAttribute,
256256
privacyEnabledActionName
257257
)
258-
if (treeWalkerText !== text.replace(/\s+/g, ' ').trim()) {
259-
addTelemetryDebug('tree-walker-text-diff', { text, treeWalkerText })
258+
if (treeWalkerText.toLowerCase() !== text.replace(/\s+/g, ' ').trim().toLowerCase()) {
259+
addTelemetryDebug('tree-walker-text-diff', { text, treeWalkerText, selector: element.outerHTML })
260260
}
261261
return treeWalkerText
262262
}

0 commit comments

Comments
 (0)