chore: simplify punct regex

Co-authored-by: Eric Mastro <eric.mastro@gmail.com>
This commit is contained in:
Jonathan Rainville 2020-09-28 10:47:16 -04:00 committed by Iuri Matias
parent cf734796d1
commit db6b87d813
1 changed files with 1 additions and 3 deletions

View File

@ -151,8 +151,6 @@ QtObject {
} }
function isPunct(c) { function isPunct(c) {
if (/(!|\@|#|\$|%|\^|&|\*|\(|\)|_|\+|\||-|=|\\|{|}|[|]|"|;|'|<|>|\?|,|\.|\/)/.test(c)) return /(!|\@|#|\$|%|\^|&|\*|\(|\)|_|\+|\||-|=|\\|{|}|[|]|"|;|'|<|>|\?|,|\.|\/)/.test(c)
return true;
return false;
} }
} }