Ahmad Kholid 2 лет назад
Родитель
Сommit
f31d4563db
1 измененных файлов с 1 добавлено и 1 удалено
  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);
 }