Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liyaoting
/
jk-ut-plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 2065371c
authored
2023-04-12 21:26:09 +0800
by
liyaoting
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
V1.04
过滤注释
1 parent
fab90904
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
index.html
index.html
View file @
2065371
...
...
@@ -199,6 +199,10 @@
if
(
!
row
)
{
return
;
}
//过滤可能是注释的行
if
(
escape
(
row
).
indexOf
(
"%u"
)
!==
-
1
||
item
.
indexOf
(
"sh"
)
===
-
1
)
{
return
;
}
let
isOpen
=
!!
(
row
&&
!
row
.
startsWith
(
"//"
));
if
(
!
isOpen
)
{
row
=
this
.
dealStr
(
row
);
...
...
@@ -220,6 +224,10 @@
buildRowNo
=
imageBuildStart
+
index
;
let
trimItem
=
item
.
trim
();
if
(
item
.
indexOf
(
"sleep"
)
===
-
1
&&
trimItem
)
{
//过滤可能是注释的行
if
(
escape
(
trimItem
).
indexOf
(
"%u"
)
!==
-
1
||
item
.
indexOf
(
".sh"
)
===
-
1
)
{
return
;
}
let
serviceName
=
item
.
split
(
".sh "
)[
1
].
split
(
" "
)[
0
];
let
service
=
serviceMap
[
serviceName
];
if
(
!
service
)
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment