UNPKG
sveldoc
Version:
latest (0.10.1)
0.10.1
0.10.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.0
Readme-driven Development for building Svelte components
github.com/metonym/sveldoc
metonym/sveldoc
sveldoc
/
dist
/
utils
/
extract-component-path.js
6 lines
(5 loc)
•
281 B
JavaScript
View Raw
1
2
3
4
5
6
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
extractComponentPath
=
void
0
;
const
extractComponentPath
= (
line
) => line.
split
(
" "
).
find
(
(
item
) =>
!
/^(<!--|-->|example-start)/
.
test
(item));
exports
.
extractComponentPath
= extractComponentPath;