MCPcopy Create free account
hub / github.com/angular/dev-infra / isTokenCharCode

Function isTokenCharCode

github-actions/browserstack/set-browserstack-env.js:1528–1551  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

1526 return hasIsWellFormed ? `${val}`.isWellFormed() : toUSVString(val) === `${val}`;
1527 }
1528 function isTokenCharCode(c) {
1529 switch (c) {
1530 case 34:
1531 case 40:
1532 case 41:
1533 case 44:
1534 case 47:
1535 case 58:
1536 case 59:
1537 case 60:
1538 case 61:
1539 case 62:
1540 case 63:
1541 case 64:
1542 case 91:
1543 case 92:
1544 case 93:
1545 case 123:
1546 case 125:
1547 return false;
1548 default:
1549 return c >= 33 && c <= 126;
1550 }
1551 }
1552 function isValidHTTPToken(characters) {
1553 if (characters.length === 0) {
1554 return false;

Callers 1

isValidHTTPTokenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected