MCPcopy Create free account
hub / github.com/breck7/scroll / _replaceNonAlphaNumericCharactersWithCharCodes

Method _replaceNonAlphaNumericCharactersWithCharCodes

external/.scrollLibs.js:14473–14479  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

14471 return map
14472 }
14473 static _replaceNonAlphaNumericCharactersWithCharCodes(str) {
14474 return str
14475 .replace(/[^a-zA-Z0-9]/g, sub => {
14476 return "_" + sub.charCodeAt(0).toString()
14477 })
14478 .replace(/^([0-9])/, "number$1")
14479 }
14480 static mapValues(object, fn) {
14481 const result = {}
14482 Object.keys(object).forEach(key => {

Callers 1

.scrollLibs.jsFile · 0.80

Calls 2

replaceMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected