mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
2205d64ea3
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
7 lines
169 B
JavaScript
7 lines
169 B
JavaScript
export function encodePointer(p) {
|
|
return encodeURI(escapePointer(p));
|
|
}
|
|
export function escapePointer(p) {
|
|
return p.replace(/~/g, '~0').replace(/\//g, '~1');
|
|
}
|