Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
SemWeb
libview
Commits
c95c5239e5b5
Commit
93a92c84
authored
Nov 14, 2018
by
Laurent Wouters
Browse files
[fix] Fixed linting issues with ldbrowser
parent
069d3bd786ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/src/common/data.ts
View file @
c95c5239
...
...
@@ -122,11 +122,12 @@ export function parseLinkTags(content: string): Tag[] {
let
tags
:
Tag
[]
=
[];
let
regexp
=
RegExp
(
"
([a-zA-Z_0-9]+)
\\
s*=
\\
s*('[^']*'|
\"
[^
\"
]*
\"
)
"
,
"
g
"
);
let
match
=
regexp
.
exec
(
content
);
if
(
match
!==
null
)
{
while
(
match
!==
null
)
{
tags
.
push
({
name
:
match
[
1
],
value
:
match
[
2
].
substring
(
1
,
match
[
2
].
length
-
1
)
});
match
=
regexp
.
exec
(
content
);
}
return
tags
;
}
...
...
@@ -142,10 +143,11 @@ export function parseLinks(content: string): Link[] {
"
g
"
);
let
match
=
regexp
.
exec
(
content
);
if
(
match
!==
null
)
{
while
(
match
!==
null
)
{
let
tags
=
parseLinkTags
(
match
[
0
]);
let
link
=
new
Link
(
match
[
1
],
tags
);
links
.
push
(
link
);
match
=
regexp
.
exec
(
content
);
}
return
links
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment