From fc730e81a13a49cdb6b0c0e0e24d894ff37b7ffd Mon Sep 17 00:00:00 2001 From: Richard Frost Date: Thu, 28 Mar 2019 02:19:11 -0600 Subject: [PATCH] :pencil2: More consistent naming of variables --- src/script/lib/word.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/lib/word.ts b/src/script/lib/word.ts index 040477b1..685cdadf 100644 --- a/src/script/lib/word.ts +++ b/src/script/lib/word.ts @@ -1,7 +1,7 @@ export default class Word { private static readonly _edgePunctuationRegExp = /(^[,.'"!?%$]|[,.'"!?%$]$)/; private static readonly _escapeRegExp = /[\/\\^$*+?.()|[\]{}]/g; - private static readonly _unicodeRegex = /[^\u0000-\u00ff]/; + private static readonly _unicodeRegExp = /[^\u0000-\u00ff]/; private static readonly _unicodeWordBoundary = '[\\s.,\'"+!?|-]'; static readonly nonWordRegExp = new RegExp('^\\s*[^\\w]+\\s*$', 'g'); static readonly whitespaceRegExp = /^\s+$/; @@ -101,7 +101,7 @@ export default class Word { static containsDoubleByte(str): boolean { if (!str.length) return false; if (str.charCodeAt(0) > 127) return true; - return Word._unicodeRegex.test(str); + return Word._unicodeRegExp.test(str); } // /[-\/\\^$*+?.()|[\]{}]/g