| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f9f3dc9 commit e91b54d
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,6 +73,8 @@ const WINDOWS_RESERVED_NAMES = [ | |||
| 73 | 73 | 'CON', 'PRN', 'AUX', 'NUL', | |
| 74 | 74 | 'COM1', 'COM2', 'COM3', 'COM4', 'COM5', 'COM6', 'COM7', 'COM8', 'COM9', | |
| 75 | 75 | 'LPT1', 'LPT2', 'LPT3', 'LPT4', 'LPT5', 'LPT6', 'LPT7', 'LPT8', 'LPT9', | |
| 76 | + 'COM\xb9', 'COM\xb2', 'COM\xb3', | ||
| 77 | + 'LPT\xb9', 'LPT\xb2', 'LPT\xb3', | ||
| 76 | 78 | ]; | |
| 77 | 79 | ||
| 78 | 80 | function isWindowsReservedName(path, colonIndex) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,10 +45,18 @@ const normalizeDeviceNameTests = [ | |||
| 45 | 45 | ||
| 46 | 46 | { input: 'COM1:', expected: '.\\COM1:.' }, | |
| 47 | 47 | { input: 'COM9:', expected: '.\\COM9:.' }, | |
| 48 | + { input: 'COM¹:', expected: '.\\COM¹:.' }, | ||
| 49 | + { input: 'COM²:', expected: '.\\COM²:.' }, | ||
| 50 | + { input: 'COM³:', expected: '.\\COM³:.' }, | ||
| 48 | 51 | { input: 'COM1:.\\..\\..\\foo', expected: '.\\COM1:..\\..\\foo' }, | |
| 52 | + { input: 'COM¹:.\\..\\..\\foo', expected: '.\\COM¹:..\\..\\foo' }, | ||
| 49 | 53 | { input: 'LPT1:', expected: '.\\LPT1:.' }, | |
| 54 | + { input: 'LPT¹:', expected: '.\\LPT¹:.' }, | ||
| 55 | + { input: 'LPT²:', expected: '.\\LPT²:.' }, | ||
| 56 | + { input: 'LPT³:', expected: '.\\LPT³:.' }, | ||
| 50 | 57 | { input: 'LPT9:', expected: '.\\LPT9:.' }, | |
| 51 | 58 | { input: 'LPT1:.\\..\\..\\foo', expected: '.\\LPT1:..\\..\\foo' }, | |
| 59 | + { input: 'LPT¹:.\\..\\..\\foo', expected: '.\\LPT¹:..\\..\\foo' }, | ||
| 52 | 60 | { input: 'LpT5:/another/path', expected: '.\\LpT5:another\\path' }, | |
| 53 | 61 | ||
| 54 | 62 | { input: 'C:\\foo', expected: 'C:\\foo' }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments