Skip to content

Commit

Permalink
修改特殊正则匹配,兼容新旧命名格式
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed Aug 29, 2023
1 parent fca4f28 commit d7e9cb6
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions custom_rules.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# 特殊正则取集数
starts_with_rules = [
['[GM-Team]',
[
r'^\[GM-Team\](?:\[.*?\]){3}\[(.*?)\]',
],
],
['[AI-Raws]',
[
r'^\[AI-Raws\] .* #(.*?) .*',
],
],
['[Moozzi2]',
[
r'^\[Moozzi2\] .* - (.*?) .*',
],
]

[
'[GM-Team]',
[
r'^\[GM-Team\].*?\[\d{4}\]\[(.*?)\]',
],
],
[
'[AI-Raws]',
[
r'^\[AI-Raws\] .* #(.*?) .*',
],
],
[
'[Moozzi2]',
[
r'^\[Moozzi2\] .* - (.*?) .*',
],
],
]

0 comments on commit d7e9cb6

Please sign in to comment.