浏览代码

Linting and tidy up

n1073645 5 年之前
父节点
当前提交
47ccafcbb2
共有 2 个文件被更改,包括 0 次插入24 次删除
  1. 0 17
      src/core/operations/FromBase85.mjs
  2. 0 7
      src/core/operations/FromBraille.mjs

+ 0 - 17
src/core/operations/FromBase85.mjs

@@ -33,23 +33,6 @@ class FromBase85 extends Operation {
                 value: ALPHABET_OPTIONS
                 value: ALPHABET_OPTIONS
             },
             },
         ];
         ];
-        this.patterns = [
-            {
-                match:  "^\\s*(<~)?([!-u]{4})+([!-u]{1,3})??(~>)?\\s*$",
-                flags:  "",
-                args:   ["!-u", true]
-            },
-            {
-                match:  "^\\s*(<~)?([0-9A-Z.-:+=^!/*?&<>()[]{}@%$#]{4})+([0-9A-Z.-:+=^!/*?&<>()[]{}@%$#]{1,3})??(~>)?\\s*$",
-                flags:  "i",
-                args:   ["0-9a-zA-Z.-:+=^!/*?&<>()[]{}@%$#", true]
-            },
-            {
-                match:  "^\\s*(<~)?([0-9A-Z.-:+=^!/*?&_<>()[]{}@%$#;`|~]{4})+([0-9A-Z.-:+=^!/*?&_<>()[]{}@%$#;`|~]{1,3})??(~>)?\\s*$",
-                flags:  "i",
-                args:   ["0-9A-Za-z!#$%&()*+-;<=>?@^_`{|~}", true]
-            }
-        ];
     }
     }
 
 
     /**
     /**

+ 0 - 7
src/core/operations/FromBraille.mjs

@@ -25,13 +25,6 @@ class FromBraille extends Operation {
         this.inputType = "string";
         this.inputType = "string";
         this.outputType = "string";
         this.outputType = "string";
         this.args = [];
         this.args = [];
-        this.patterns = [
-            {
-                match:  "^\\s*[⠀⠁⠂⠃⠄⠅⠆⠇⠈⠉⠊⠋⠌⠍⠎⠏⠐⠑⠒⠓⠔⠕⠖⠗⠘⠙⠚⠛⠜⠝⠞⠟⠠⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫⠬⠭⠮⠯⠰⠱⠲⠳⠴⠵⠶⠷⠸⠹⠺⠻⠼⠽⠾⠿]+\\s*$",
-                flags:  "i",
-                args:   [true]
-            }
-        ];
     }
     }
 
 
     /**
     /**