UNPKG
attributes-kit
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.20.2
0.20.1
0.20.0
0.19.2
0.19.1
0.19.0
0.18.6
0.18.5
0.18.4
0.18.3
0.18.2
0.18.1
0.18.0
0.18.0-beta.15
0.18.0-beta.14
0.18.0-beta.13
0.18.0-beta.12
0.18.0-beta.11
0.18.0-beta.10
0.18.0-beta.9
0.18.0-beta.8
0.18.0-beta.7
0.18.0-beta.6
0.18.0-beta.4
0.18.0-beta.3
0.18.0-beta.2
0.18.0-beta.1
0.17.0
0.17.0-alpha.3
0.17.0-alpha.2
0.17.0-alpha.1
0.16.0
0.15.1
0.15.0
0.14.3
0.14.2
0.14.1
0.14.0
0.13.2
0.13.1
0.13.0
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.1
0.11.0
0.10.0
0.9.0
React component for MSON rendering
github.com/apiaryio/attributes-kit
apiaryio/attributes-kit
attributes-kit
/
node_modules
/
history
/
es6
/
extractPath.js
11 lines
(7 loc)
•
208 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
function
extractPath
(
string
) {
var
match =
string
.
match
(
/^https?:\/\/[^\/]*/
);
if
(match ==
null
)
return
string
;
return
string
.
substring
(match[
0
].
length
); }
export
default
extractPath;