UNPKG
canoejs
Version:
latest (0.6.5)
1.0.47
1.0.46
1.0.43
1.0.41
1.0.40
1.0.39
1.0.38
1.0.35
1.0.32
1.0.31
1.0.29
1.0.28
1.0.21
1.0.19
1.0.16
1.0.15
1.0.12
1.0.9
1.0.8
1.0.6
1.0.4
1.0.0
0.6.5
0.6.2
0.6.1
0.6.0
0.5.2
0.5.1
0.3.9
0.3.5
0.3.1
0.3.0
0.2.8
0.2.7
0.2.6
0.2.5
0.0.50
A lightweight, widget-based UI framework
github.com/jotalevi/CanoeJs
jotalevi/CanoeJs
canoejs
/
src
/
core
/
utils
/
normalizeUrl.ts
2 lines
•
112 B
text/typescript
View Raw
1
2
const
normalizeUrl
= (
url
:
string
) =>
decodeURIComponent
(url.
replace
(
/\/+$/
,
""
));
export
default
normalizeUrl;