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

Function extractAltFromStreet

lib/fetchGeocoordinateFromBrazilLocation.js:13–16  ·  view source on GitHub ↗
(street)

Source from the content-addressed store, hash-verified

11}
12
13function extractAltFromStreet(street) {
14 const regex = /-.*$/gm;
15 return street.replace(regex, '').trim();
16}
17
18function getRandomUserAgent() {
19 const number = Math.floor(Math.random() * 10);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected