MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isToken

Function isToken

packages/core/sdk/src/www-authenticate.ts:27–27  ·  view source on GitHub ↗
(word: string)

Source from the content-addressed store, hash-verified

25const WORD_RE = /[A-Za-z0-9!#$%&'*+.^_`|~/-]/;
26
27const isToken = (word: string): boolean => [...word].every((ch) => TOKEN_RE.test(ch));
28// Unquoted URL values some providers emit (scheme://host/path?query): URI
29// characters per RFC 3986, no whitespace/comma/quotes.
30const isUrlish = (word: string): boolean => /^[A-Za-z][A-Za-z0-9+.-]*:\/\/[^\s,"]+$/.test(word);

Callers 1

parseChallengesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected