MCPcopy
hub / github.com/angular-ui/ui-router / escape

Function escape

test/angular/1.4/angular.js:11206–11208  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

11204 escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g');
11205
11206 function escape(ch) {
11207 return '\\\\\\' + ch;
11208 }
11209
11210 function unescapeText(text) {
11211 return text.replace(escapedStartRegexp, startSymbol).

Callers 1

BrowserFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected