Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1262809
escape-url-params.ts
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
358 B
Referenced Files
None
Subscribers
None
escape-url-params.ts
View Options
export
function
escape_url_params
(
url
:
string
)
:
string
{
return
url
.
split
(
"/"
)
.
map
((
e
)
=>
(
e
.
startsWith
(
":"
)
?
`[
${
e
.
slice
(
1
)
}
]`
:
e
))
.
filter
((
e
)
=>
e
!=
""
)
.
join
(
"/"
);
}
export
function
unescape_url_params
(
url
:
string
)
:
string
{
return
url
.
split
(
"/"
)
.
map
((
e
)
=>
(
e
.
startsWith
(
"["
)
?
`:
${
e
.
slice
(
1
,
e
.
length
-
1
)
}
`
:
e
))
.
join
(
"/"
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 15:16 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
600927
Default Alt Text
escape-url-params.ts (358 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment