aboutsummaryrefslogtreecommitdiff
path: root/pattern_utils.js
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-04-07 12:17:38 +1000
committerYuchen Pei <hi@ypei.me>2022-04-07 12:17:38 +1000
commitae25ad78906179e1448ff7d97957810e2be40206 (patch)
treeca56b583f36ccd317900e6b51c4fcd86f161bc56 /pattern_utils.js
parent52398eafaf99ebbba7ff5a28b832830be394bf1d (diff)
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
Diffstat (limited to 'pattern_utils.js')
-rw-r--r--pattern_utils.js36
1 files changed, 18 insertions, 18 deletions
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, '.*?');
+ }
};