MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / normalize

Function normalize

services/tuss/index.js:8–10  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

6}
7
8function normalize(str) {
9 return removeSpecialChars(String(str || ''));
10}
11
12function sanitizeCode(str) {
13 return String(str || '').replaceAll(/\D+/g, '');

Callers 3

searchTussFunction · 0.85
sortTermsFunction · 0.85
searchTussAdvancedFunction · 0.85

Calls 1

removeSpecialCharsFunction · 0.85

Tested by

no test coverage detected