Replaces local IP with localhost
String to replace
String with replaced IP
toLocalhost('https://127.0.0.1:80/test?q#h');// returns 'https://localhost:80/test?q#h' Copy
toLocalhost('https://127.0.0.1:80/test?q#h');// returns 'https://localhost:80/test?q#h'
Replaces local IP with localhost