MCPcopy
hub / github.com/zen-browser/desktop / sanitizeModName

Method sanitizeModName

src/zen/mods/ZenMods.mjs:401–404  ·  view source on GitHub ↗
(aName)

Source from the content-addressed store, hash-verified

399 }
400
401 sanitizeModName(aName) {
402 // Do not change to "mod-" for backwards compatibility
403 return `theme-${aName?.replaceAll(WHITESPACE_RE, "-")?.replaceAll(NON_NAME_RE, "")}`;
404 }
405
406 get updatePref() {
407 return "zen.mods.updated-value-observer";

Callers 2

#writeToDomMethod · 0.95
_buildModsListFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected