瀏覽代碼

Merge branch 'master' into feature-ipv4header

n1474335 8 年之前
父節點
當前提交
d6cebe55ab
共有 5 個文件被更改,包括 24 次插入6 次删除
  1. 0 0
      build/prod/cyberchef.htm
  2. 0 0
      build/prod/index.html
  3. 0 0
      build/prod/scripts.js
  4. 20 2
      src/js/operations/MorseCode.js
  5. 4 4
      src/static/stats.txt

File diff suppressed because it is too large
+ 0 - 0
build/prod/cyberchef.htm


File diff suppressed because it is too large
+ 0 - 0
build/prod/index.html


File diff suppressed because it is too large
+ 0 - 0
build/prod/scripts.js


+ 20 - 2
src/js/operations/MorseCode.js

@@ -65,6 +65,24 @@ var MorseCode = {
         "8": "<dash><dash><dash><dot><dot>",
         "9": "<dash><dash><dash><dash><dot>",
         "0": "<dash><dash><dash><dash><dash>",
+        ".": "<dot><dash><dot><dash><dot><dash>",
+        ",": "<dash><dash><dot><dot><dash><dash>",
+        ":": "<dash><dash><dash><dot><dot><dot>",
+        ";": "<dash><dot><dash><dot><dash><dot>",
+        "!": "<dash><dot><dash><dot><dash><dash>",
+        "?": "<dot><dot><dash><dash><dot><dot>",
+        "'": "<dot><dash><dash><dash><dash><dot>",
+        "\"": "<dot><dash><dot><dot><dash><dot>",
+        "/": "<dash><dot><dot><dash><dot>",
+        "-": "<dash><dot><dot><dot><dot><dash>",
+        "+": "<dot><dash><dot><dash><dot>",
+        "(": "<dash><dot><dash><dash><dot>",
+        ")": "<dash><dot><dash><dash><dot><dash>",
+        "@": "<dot><dash><dash><dot><dash><dot>",
+        "=": "<dash><dot><dot><dot><dash>",
+        "&": "<dot><dash><dot><dot><dot>",
+        "_": "<dot><dot><dash><dash><dot><dash>",
+        "$": "<dot><dot><dot><dash><dot><dot><dash>"
     },
 
 
@@ -145,8 +163,8 @@ var MorseCode = {
             var letterDelim = Utils.charRep[args[0]];
             var wordDelim = Utils.charRep[args[1]];
 
-            input = input.replace(/-|_|dash/ig, "<dash>");
-            input = input.replace(/\.|dot/ig, "<dot>");
+            input = input.replace(/-|‐|−|_|–|—|dash/ig, "<dash>"); //hyphen-minus|hyphen|minus-sign|undersore|en-dash|em-dash
+            input = input.replace(/\.|·|dot/ig, "<dot>");
 
             var words = input.split(wordDelim);
             words = Array.prototype.map.call(words, function(word) {

+ 4 - 4
src/static/stats.txt

@@ -1,9 +1,9 @@
 214	source files
-116176	lines
+115922	lines
 4.3M	size
 
 144	JavaScript source files
-106980	lines
+106730	lines
 3.8M	size
 
 83	third party JavaScript source files
@@ -11,8 +11,8 @@
 3.0M	size
 
 61	first party JavaScript source files
-20721	lines
-776K	size
+20471	lines
+764K	size
 
 3.5M	uncompressed JavaScript size
 1.9M	compressed JavaScript size

Some files were not shown because too many files changed in this diff