source: node_modules/@swagger-api/apidom-json-pointer/es/escape.mjs

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 176 bytes
Line 
1import { pipe, replace } from 'ramda';
2
3// escape :: String -> String
4const escape = pipe(replace(/~/g, '~0'), replace(/\//g, '~1'), encodeURIComponent);
5export default escape;
Note: See TracBrowser for help on using the repository browser.