1
0
mirror of synced 2025-02-07 14:41:27 +01:00

Added forward and backward slashes to the delimiter options for the Morse Code operations. Closes #66.

This commit is contained in:
n1474335 2017-02-07 14:37:26 +00:00
parent 3b1c378e15
commit 553d9945ce
7 changed files with 42 additions and 38 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -934,16 +934,18 @@ var Utils = {
* @constant * @constant
*/ */
charRep: { charRep: {
"Space": " ", "Space": " ",
"Comma": ",", "Comma": ",",
"Semi-colon": ";", "Semi-colon": ";",
"Colon": ":", "Colon": ":",
"Line feed": "\n", "Line feed": "\n",
"CRLF": "\r\n", "CRLF": "\r\n",
"0x": "0x", "Forward slash": "/",
"\\x": "\\x", "Backslash": "\\",
"0x": "0x",
"\\x": "\\x",
"Nothing (separate chars)": "", "Nothing (separate chars)": "",
"None": "", "None": "",
}, },
@ -952,14 +954,16 @@ var Utils = {
* @constant * @constant
*/ */
regexRep: { regexRep: {
"Space": /\s+/g, "Space": /\s+/g,
"Comma": /,/g, "Comma": /,/g,
"Semi-colon": /;/g, "Semi-colon": /;/g,
"Colon": /:/g, "Colon": /:/g,
"Line feed": /\n/g, "Line feed": /\n/g,
"CRLF": /\r\n/g, "CRLF": /\r\n/g,
"0x": /0x/g, "Forward slash": /\//g,
"\\x": /\\x/g "Backslash": /\\/g,
"0x": /0x/g,
"\\x": /\\x/g
}, },

View File

@ -119,7 +119,7 @@ var IP = {
// IPv4/IPv6 translation per RFC 6052 // IPv4/IPv6 translation per RFC 6052
output += "\n'Well-Known' prefix for IPv4/IPv6 translation detected. See RFC 6052 for more details."; output += "\n'Well-Known' prefix for IPv4/IPv6 translation detected. See RFC 6052 for more details.";
output += "\nTranslated IPv4 address: " + IP._ipv4ToStr((ipv6[6] << 16) + ipv6[7]); output += "\nTranslated IPv4 address: " + IP._ipv4ToStr((ipv6[6] << 16) + ipv6[7]);
output += "\n'Well-Known prefix range: 64:ff9b::/96"; output += "\n'Well-Known' prefix range: 64:ff9b::/96";
} else if (ipv6[0] === 0x2001 && ipv6[1] === 0) { } else if (ipv6[0] === 0x2001 && ipv6[1] === 0) {
// Teredo tunneling // Teredo tunneling
output += "\nTeredo tunneling IPv6 address detected\n"; output += "\nTeredo tunneling IPv6 address detected\n";

View File

@ -18,12 +18,12 @@ var MorseCode = {
* @constant * @constant
* @default * @default
*/ */
LETTER_DELIM_OPTIONS: ["Space", "Line feed", "CRLF", "Comma", "Semi-colon", "Colon"], LETTER_DELIM_OPTIONS: ["Space", "Line feed", "CRLF", "Forward slash", "Backslash", "Comma", "Semi-colon", "Colon"],
/** /**
* @constant * @constant
* @default * @default
*/ */
WORD_DELIM_OPTIONS: ["Line feed", "CRLF", "Space", "Comma", "Semi-colon", "Colon"], WORD_DELIM_OPTIONS: ["Line feed", "CRLF", "Forward slash", "Backslash", "Comma", "Semi-colon", "Colon"],
/** /**
* @constant * @constant
* @default * @default

View File

@ -1,9 +1,9 @@
212 source files 212 source files
115050 lines 115054 lines
4.3M size 4.3M size
142 JavaScript source files 142 JavaScript source files
105890 lines 105894 lines
3.8M size 3.8M size
83 third party JavaScript source files 83 third party JavaScript source files
@ -11,7 +11,7 @@
3.0M size 3.0M size
59 first party JavaScript source files 59 first party JavaScript source files
19632 lines 19636 lines
740K size 740K size
3.4M uncompressed JavaScript size 3.4M uncompressed JavaScript size