Browse Source

fix: xpath RegEx

Ahmad Kholid 2 năm trước cách đây
mục cha
commit
f31d4563db
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/utils/helper.js

+ 1 - 1
src/utils/helper.js

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