| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 80b5c91 commit baf3027
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,21 +5,19 @@ const assert = require('assert'); | |||
| 5 | 5 | ||
| 6 | 6 | const groupedInputs = { | |
| 7 | 7 | group_common: ['undefined', 'utf8', 'utf-8', 'base64', | |
| 8 | - 'binary', 'latin1', 'ucs-2', 'usc-2'], | ||
| 8 | + 'binary', 'latin1', 'ucs-2'], | ||
| 9 | 9 | group_upper: ['UTF-8', 'UTF8', 'UCS2', 'UTF-16LE', | |
| 10 | - 'UTF16LE', 'BASE64', 'UCS-2', 'USC-2'], | ||
| 10 | + 'UTF16LE', 'BASE64', 'UCS-2'], | ||
| 11 | 11 | group_uncommon: ['foo', '1', 'false', 'undefined', '[]', '{}'], | |
| 12 | - group_misc: ['', 'utf16le', 'usc2', 'hex', 'HEX', 'BINARY'] | ||
| 12 | + group_misc: ['', 'utf16le', 'hex', 'HEX', 'BINARY'] | ||
| 13 | 13 | }; | |
| 14 | 14 | ||
| 15 | 15 | const inputs = [ | |
| 16 | 16 | '', | |
| 17 | 17 | 'utf8', 'utf-8', 'UTF-8', | |
| 18 | 18 | 'UTF8', 'Utf8', 'uTf-8', 'utF-8', | |
| 19 | 19 | 'ucs2', 'UCS2', 'UcS2', | |
| 20 | - 'USC2', 'usc2', 'uSc2', | ||
| 21 | 20 | 'ucs-2', 'UCS-2', 'UcS-2', | |
| 22 | - 'usc-2', 'USC-2', 'uSc-2', | ||
| 23 | 21 | 'utf16le', 'utf-16le', 'UTF-16LE', 'UTF16LE', | |
| 24 | 22 | 'binary', 'BINARY', 'latin1', 'base64', 'BASE64', | |
| 25 | 23 | 'hex', 'HEX', 'foo', '1', 'false', 'undefined', '[]', '{}']; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -127,7 +127,6 @@ function slowCases(enc) { | |||
| 127 | 127 | enc = `${enc}`.toLowerCase(); | |
| 128 | 128 | if (enc === 'utf-8') return 'utf8'; | |
| 129 | 129 | if (enc === 'ascii') return 'ascii'; | |
| 130 | - if (enc === 'usc-2') return 'utf16le'; | ||
| 131 | 130 | if (enc === 'ucs-2') return 'utf16le'; | |
| 132 | 131 | break; | |
| 133 | 132 | case 6: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,9 +25,6 @@ const tests = [ | |||
| 25 | 25 | ['utf-16le', 'utf16le'], | |
| 26 | 26 | ['UTF-16LE', 'utf16le'], | |
| 27 | 27 | ['UTF16LE', 'utf16le'], | |
| 28 | - ['usc-2', 'utf16le'], | ||
| 29 | - ['USC-2', 'utf16le'], | ||
| 30 | - ['uSc-2', 'utf16le'], | ||
| 31 | 28 | ['binary', 'latin1'], | |
| 32 | 29 | ['BINARY', 'latin1'], | |
| 33 | 30 | ['latin1', 'latin1'], | |
| Back | FazBrowse Home | New Git URL |
0 commit comments