Skip to content

Commit 3f8deee

Browse files
committed
Remove deprecated substr to substring function
1 parent 4510e18 commit 3f8deee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CSSObject/queries/Selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import Pseudo from "../queries/Pseudo.js"
5959
pseudo(value) {
6060
let selct = value.replace(ISelector[this.type], ICSS.EMPTY)
6161
let tag = selct.replace(/[0-9a-z-_*+^~$=|\'\'\"\"\[\]]+/, '')
62-
let sign = tag.substr(0, 2).replace(/[a-z-]/g, '')
62+
let sign = tag.substring(0, 2).replace(/[a-z-]/g, '')
6363
if (ICSS.PSEUDO.KEYS.includes(sign)) this.pseudo = new Pseudo(tag)
6464
}
6565

0 commit comments

Comments
 (0)