MCPcopy
hub / github.com/BrasilAPI/cep-promise / removeSpecialCharacters

Function removeSpecialCharacters

src/cep-promise.js:82–84  ·  view source on GitHub ↗
(cepRawValue)

Source from the content-addressed store, hash-verified

80}
81
82function removeSpecialCharacters (cepRawValue) {
83 return cepRawValue.toString().replace(/\D+/g, '')
84}
85
86function leftPadWithZeros (cepCleanValue) {
87 return '0'.repeat(CEP_SIZE - cepCleanValue.length) + cepCleanValue

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected