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) {
|
||||
if (/(!|\@|#|\$|%|\^|&|\*|\(|\)|_|\+|\||-|=|\\|{|}|[|]|"|;|'|<|>|\?|,|\.|\/)/.test(c))
|
||||
return true;
|
||||
return false;
|
||||
return /(!|\@|#|\$|%|\^|&|\*|\(|\)|_|\+|\||-|=|\\|{|}|[|]|"|;|'|<|>|\?|,|\.|\/)/.test(c)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue