We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fdfa51b + 0749935 commit ea5a355Copy full SHA for ea5a355
.changeset/wicked-walls-marry.md
@@ -0,0 +1,5 @@
1
+---
2
+'@alita/plugins': patch
3
4
+
5
+replace includes check with instanceof RegExp
packages/plugins/src/hd.ts
@@ -72,7 +72,7 @@ export default (api: AlitaApi) => {
72
// 将正则转成字符串
73
selectorDoubleList: px2remConfig.selectorDoubleRemList.map(
74
(i: string) => {
75
- if (!i.includes('/')) return i;
+ if (!(i instanceof RegExp)) return i;
76
const reStr = `${i}`.replaceAll('/', '');
77
if (hasMagicChars(reStr)) {
78
return reStr;
0 commit comments