MCPcopy Create free account
hub / github.com/GoogleChrome/samples / removeNonCharacters

Function removeNonCharacters

window-controls-overlay/script.js:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51const removeNonCharacters = text => {
52 return text
53 ? text
54 .replace(/\W/g, "-")
55 .replace(/-+/g, "-")
56 .toLowerCase()
57 : text;
58};
59
60(async () => {
61 const content = await fetch(

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected