UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

11 lines 388 B
/** * 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\)' */ export default (function (url) { return url.replace(/(\(|\))/g, '\\$1'); }); //# sourceMappingURL=escapePath.js.map