aboutsummaryrefslogtreecommitdiff
path: root/node_modules/strict-uri-encode/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/strict-uri-encode/index.js')
-rw-r--r--node_modules/strict-uri-encode/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/strict-uri-encode/index.js b/node_modules/strict-uri-encode/index.js
new file mode 100644
index 0000000..414de96
--- /dev/null
+++ b/node_modules/strict-uri-encode/index.js
@@ -0,0 +1,6 @@
+'use strict';
+module.exports = function (str) {
+ return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
+ return '%' + c.charCodeAt(0).toString(16).toUpperCase();
+ });
+};