UNPKG
ih-portal
Version:
latest (3.0.2)
3.0.2
2.0.2
2.0.1
1.0.0
0.6.3
0.6.2
0.6.1
0.5.40
0.5.39
0.5.36
0.5.35
0.5.34
0.5.33
0.5.32
0.5.30
0.5.29
0.5.28
0.5.27
0.5.26
0.5.25
0.5.24
0.5.23
0.5.22
0.5.21
0.5.20
0.5.19
0.5.18
0.5.17
0.5.16
0.5.15
0.5.14
0.5.13
0.5.12
0.5.11
0.5.10
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.22
0.4.21
0.4.20
0.4.19
0.4.18
0.4.17
0.4.16
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.24
0.3.23
0.3.22
0.3.21
0.3.20
0.3.19
0.3.18
0.3.16
0.3.15
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.0.4-rc1
0.0.3
0.0.2
0.0.1
A project for connecting interaction hub services with catalyst-ui components
ih-portal
/
node_modules
/
history
/
lib
/
extractPath.js
13 lines
(9 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict"
;
exports
.
__esModule
=
true
;
function
extractPath
(
string
) {
var
match =
string
.
match
(
/^https?:\/\/[^\/]*/
);
if
(match ==
null
)
return
string
;
return
string
.
substring
(match[
0
].
length
); }
exports
[
"default"
] = extractPath;
module
.
exports
=
exports
[
"default"
];