chore: simplify punct regex
Co-authored-by: Eric Mastro <eric.mastro@gmail.com>
This commit is contained in:
parent
cf734796d1
commit
db6b87d813
|
@ -151,8 +151,6 @@ QtObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isPunct(c) {
|
function isPunct(c) {
|
||||||
if (/(!|\@|#|\$|%|\^|&|\*|\(|\)|_|\+|\||-|=|\\|{|}|[|]|"|;|'|<|>|\?|,|\.|\/)/.test(c))
|
return /(!|\@|#|\$|%|\^|&|\*|\(|\)|_|\+|\||-|=|\\|{|}|[|]|"|;|'|<|>|\?|,|\.|\/)/.test(c)
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue