Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/codeaashu/DevDisplay
/ normalizeString
Function
normalizeString
src/App.js:62–67 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
60
61
const
handleSearch = ({ value, criteria }) => {
62
const
normalizeString = (str) =>
63
str
64
.toLowerCase()
65
.replace(/\s*,\s*/g,
' '
)
66
.replace(/\s+/g,
' '
)
67
.trim();
68
69
const
normalizedValue = normalizeString(value);
70
Callers
1
handleSearch
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected