MCPcopy Create free account
hub / github.com/InverseUI/InverseUI-Recorder / fixXpathDoubleQuoteIssues

Function fixXpathDoubleQuoteIssues

util/action_utils.js:120–123  ·  view source on GitHub ↗
(xpathString)

Source from the content-addressed store, hash-verified

118 * Fix XPath double quote issues for Python string compatibility
119 */
120export function fixXpathDoubleQuoteIssues(xpathString) {
121 // avoid unescaped double quotes in Python strings
122 return xpathString.replace(/(\[@[a-zA-Z]+)="([^"]*)"]/g, "$1='$2']");
123}
124

Callers 1

processAndSendTrackFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected