Files
PaperPhone/server/node_modules/strict-uri-encode/index.js
619dev 70982e58b1 init
2026-03-25 14:31:05 +08:00

3 lines
138 B
JavaScript

'use strict';
module.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);