Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swifteditor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
swifteditor
Commits
526bb79a
Commit
526bb79a
authored
Dec 05, 2018
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持空白行校验
parent
b9cb4054
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
CHANGELOG.md
CHANGELOG.md
+0
-5
TagValidater.js
src/swift/TagValidater.js
+9
-1
No files found.
CHANGELOG.md
deleted
100644 → 0
View file @
b9cb4054
# 1.0.0
`2016.07.23`
-
提供登入功能
-
提供主页框架与简单展示
\ No newline at end of file
src/swift/TagValidater.js
View file @
526bb79a
...
...
@@ -261,14 +261,20 @@ function TestAdr(adr,reg,line,length)
let
a1
=
[]
let
a2
=
[]
let
a3
=
[]
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
].
length
>
length
)
a1
.
push
(
i
+
1
)
if
(
arr
[
i
].
length
<=
length
&&
!
new
RegExp
(
`^
${
reg
}
$`
).
test
(
arr
[
i
]))
else
if
(
arr
[
i
].
length
==
0
||
/^
\s
+$/
.
test
(
arr
[
i
]))
{
a3
.
push
(
i
+
1
)
}
else
if
(
arr
[
i
].
length
<=
length
&&
!
new
RegExp
(
`^
${
reg
}
$`
).
test
(
arr
[
i
]))
a2
.
push
(
i
+
1
)
}
let
linemsg
=
''
if
(
arr
.
length
>
line
)
...
...
@@ -280,6 +286,8 @@ function TestAdr(adr,reg,line,length)
}
if
(
a2
.
length
)
msg
.
push
(
`第
${
a2
.
join
(
','
)}
行格式非法`
)
if
(
a3
.
length
)
msg
.
push
(
`第
${
a3
.
join
(
','
)}
行格式空白行`
)
if
(
linemsg
)
msg
.
push
(
linemsg
)
return
msg
.
join
(
';'
)
...
...
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