mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-04 10:44:23 +00:00
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…
x
Reference in New Issue
Block a user