aboutsummaryrefslogtreecommitdiff
path: root/mingling_pathf/src/patterns/help.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-20 17:20:17 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-20 17:20:17 +0800
commit7a438e07514ffc6b58b843dd8e42fa4088b95e71 (patch)
tree5d2d890a6b66000ab1d36fd3ebd2b4d57ef7adaf /mingling_pathf/src/patterns/help.rs
parent85ab2969934744e8a0346c78daaab7f6d7b85ee6 (diff)
fix(patterns): broaden pattern detection to cover both bracketed forms
Diffstat (limited to 'mingling_pathf/src/patterns/help.rs')
-rw-r--r--mingling_pathf/src/patterns/help.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling_pathf/src/patterns/help.rs b/mingling_pathf/src/patterns/help.rs
index 628f4ac..f460132 100644
--- a/mingling_pathf/src/patterns/help.rs
+++ b/mingling_pathf/src/patterns/help.rs
@@ -13,7 +13,7 @@ pub struct HelpPattern;
impl AnalyzePattern for HelpPattern {
fn contains(&self, content: &str) -> bool {
- content.contains("help]")
+ content.contains("[help") || content.contains("help]")
}
fn analyze(&self, content: &str) -> Vec<AnalyzeItem> {