Skip to content

Commit 56acdaa

Browse files
committed
redefine exactMatchPattern
1 parent 1c1285c commit 56acdaa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/selenium-ide/src/content/targetSelector.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717

1818
// Modified in tools.js from selenium-IDE
1919

20+
export function exactMatchPattern(string) {
21+
if (string != null && (string.match(/^\w*:/) || string.indexOf("?") >= 0 || string.indexOf("*") >= 0)) {
22+
return "exact:" + string;
23+
} else {
24+
return string;
25+
}
26+
}
27+
2028
function TargetSelector(callback, cleanupCallback) {
2129
this.callback = callback;
2230
this.cleanupCallback = cleanupCallback;

0 commit comments

Comments
 (0)