Skip to content

Commit

Permalink
✏️ More consistent naming of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
richardfrost committed Mar 28, 2019
1 parent 7de69bf commit fc730e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script/lib/word.ts
Original file line number Diff line number Diff line change
@@ -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+$/;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fc730e8

Please sign in to comment.