Gitiles
Code Review
Sign In
korap.ids-mannheim.de
/
KorAP
/
Kalamar
/
58b9f11ca7b449f85f2f1fb5337ba7633e50b14b
/
.
/
node_modules
/
strict-uri-encode
/
index.js
blob: 414de96c51f5f64de1d796f43484c8a498f532b4 [
file
] [
log
] [
blame
]
Leo Repp
58b9f11
2021-11-22 11:57:47 +0100
[
diff
] [
blame^
]
1
'use strict'
;
2
module
.
exports
=
function
(
str
)
{
3
return
encodeURIComponent
(
str
).
replace
(
/[!'()*]/
g
,
function
(
c
)
{
4
return
'%'
+
c
.
charCodeAt
(
0
).
toString
(
16
).
toUpperCase
();
5
});
6
};