Skip to content

Commit 7b1cc9c

Browse files
committed
add comments to clarify the character for each byte tested
1 parent b8835f4 commit 7b1cc9c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Multipart.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -444,15 +444,15 @@ export class Multipart implements Part {
444444
if (
445445
byte === Multipart.HT
446446
|| byte === Multipart.SP
447-
|| byte === 0x22
448-
|| byte === 0x28
449-
|| byte === 0x29
450-
|| byte === 0x2c
451-
|| byte === 0x2f
452-
|| (byte >= Multipart.COLON && byte <= 0x40)
453-
|| (byte >= 0x5b && byte <= 0x5d)
454-
|| byte === 0x7b
455-
|| byte === 0x7d
447+
|| byte === 0x22 // "
448+
|| byte === 0x28 // (
449+
|| byte === 0x29 // )
450+
|| byte === 0x2c // ,
451+
|| byte === 0x2f // /
452+
|| (byte >= Multipart.COLON && byte <= 0x40) // :;<=>@
453+
|| (byte >= 0x5b && byte <= 0x5d) // [\]
454+
|| byte === 0x7b // {
455+
|| byte === 0x7d // }
456456
) return true;
457457
}
458458
return false;

0 commit comments

Comments
 (0)