Browse Source

fix: xpath RegEx

Ahmad Kholid 2 years ago
parent
commit
f31d4563db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/helper.js

+ 1 - 1
src/utils/helper.js

@@ -1,7 +1,7 @@
 import browser from 'webextension-polyfill';
 import browser from 'webextension-polyfill';
 
 
 export function isXPath(str) {
 export function isXPath(str) {
-  const regex = /^[(/@]/;
+  const regex = /^([(/@]|id\()/;
 
 
   return regex.test(str);
   return regex.test(str);
 }
 }