From ae25ad78906179e1448ff7d97957810e2be40206 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 7 Apr 2022 12:17:38 +1000 Subject: nop whitespace formatting change. - ran eglot-format using typescript-language-server on all js files in the repo except those under /hash_script/ - verify only whitespace changed: git diff --word-diff-regex=. 62d6a71 62d6a71~1 --- pattern_utils.js | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'pattern_utils.js') diff --git a/pattern_utils.js b/pattern_utils.js index ce20842..3702e07 100644 --- a/pattern_utils.js +++ b/pattern_utils.js @@ -21,22 +21,22 @@ */ exports.patternUtils = { - /** - * removeNonalpha - * - * Remove all nonalphanumeric values, except for - * < and >, since they are what we use for tokens. - * - */ - removeNonalpha: function (str) { - var regex = /[^a-z0-9<>@]+/gi; - return str.replace(regex, ''); - }, - removeWhitespace: function (str) { - return str.replace(/\/\//gmi, '').replace(/\*/gmi, '').replace(/\s+/gmi, ''); - }, - replaceTokens: function (str) { - var regex = /<.*?>/gi; - return str.replace(regex, '.*?'); - } + /** + * removeNonalpha + * + * Remove all nonalphanumeric values, except for + * < and >, since they are what we use for tokens. + * + */ + removeNonalpha: function(str) { + var regex = /[^a-z0-9<>@]+/gi; + return str.replace(regex, ''); + }, + removeWhitespace: function(str) { + return str.replace(/\/\//gmi, '').replace(/\*/gmi, '').replace(/\s+/gmi, ''); + }, + replaceTokens: function(str) { + var regex = /<.*?>/gi; + return str.replace(regex, '.*?'); + } }; -- cgit v1.2.3