ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
13 lines • 468 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Escape special characters in path so that react-router Route does not do any special treatment
*
* @see https://github.com/ReactTraining/react-router/blob/v3/docs/guides/RouteMatching.md#path-syntax
*
* @example
*
* escapePath('/foo(bar)') => 'foo\(bar\)'
*/
exports.default = (function (url) { return url.replace(/(\(|\))/g, '\\$1'); });
//# sourceMappingURL=escapePath.js.map
;