MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / isWordCode

Function isWordCode

src/utils/Mappings.ts:9–11  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

7
8// equivalent to /\w/ without the `u` flag, which only matches ASCII word characters
9function isWordCode(code: number): boolean {
10 return (code >= 97 && code <= 122) || (code >= 65 && code <= 90) || (code >= 48 && code <= 57) || code === 95
11}
12
13export default class Mappings {
14 declare hires: SourceMapOptions['hires']

Callers 1

addUneditedChunkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected