MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / unescapeStr

Function unescapeStr

features/lib/table_diff.js:4–4  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2import chalk from 'chalk';
3
4const unescapeStr = (str) => str.replace(/\\\|/g, '|').replace(/\\\\/g, '\\');
5
6String.prototype.padLeft = function (char, length) {
7 return char.repeat(Math.max(0, length - this.length)) + this;

Callers 1

table_diff.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected