Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Card Guess
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Card Guess
Commits
3f84e073
Commit
3f84e073
authored
Mar 30, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
a764c716
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
readme.md
readme.md
+36
-0
src/checkers/LFListChecker.ts
src/checkers/LFListChecker.ts
+6
-1
No files found.
readme.md
View file @
3f84e073
...
...
@@ -64,6 +64,42 @@ mayIncorrectStatements:
*
`conditions`
额外过滤条件。
### 额外过滤条件
一个额外过滤条件的示例如下。
```
yaml
conditions
:
-
type
:
lflist
statement
:
true
data
:
match
:
'
^2021.4$'
limit
:
3
-
type
:
regex
statement
:
true
data
:
field
:
name
pattern
:
'
^.*雷龙$'
```
*
`type`
过滤器名称
*
`statement`
条件是否成立,默认
`true`
*
`data`
具体信息,根据过滤器而不同
#### regex 正则表达式过滤器
*
`field`
支持
`name`
和
`desc`
,卡名还是字段
*
`pattern`
正则表达式内容
#### lflist 卡表过滤器
*
`match`
正则表达式给出的对应卡表名称。
*
`limit`
卡表情况。0 1 2 3。-1 代表在卡表里面存在。
### 模糊逻辑
`mayIncorrectStatements`
为模糊逻辑字段,非模糊逻辑规则可以删除该字段以不使用模糊逻辑查找。
...
...
src/checkers/LFListChecker.ts
View file @
3f84e073
...
...
@@ -59,6 +59,11 @@ export class LFListChecker extends AbstractChecker {
this
.
expectedCount
=
info
.
limit
;
}
check
(
card
:
Card
)
{
return
this
.
pendingLists
.
some
(
list
=>
list
.
getNum
(
card
.
id
)
===
this
.
expectedCount
);
return
this
.
pendingLists
.
some
(
list
=>
{
if
(
this
.
expectedCount
===
-
1
)
{
return
list
.
getNum
(
card
.
id
)
<
3
;
}
return
list
.
getNum
(
card
.
id
)
===
this
.
expectedCount
;
});
}
}
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