mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-22 07:37:40 +00:00
chore(common/models): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
This commit is contained in:
parent
2f044c45b1
commit
a390c2fb2f
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class TransformUtils {
|
||||
static isWhitespace(transform: Transform): boolean {
|
||||
// Matches prefixed text + any instance of a character with Unicode general property Z* or the following: CR, LF, and Tab.
|
||||
// Matches a string that is entirely one or more characters with Unicode general property Z* or the following: CR, LF, and Tab.
|
||||
const whitespaceRemover = /^[\u0009\u000A\u000D\u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u202f\u205f\u3000]+$/i;
|
||||
|
||||
// Filter out null-inserts; their high probability can cause issues.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue