fix(plugin-web): Prevent overwriting keywords
This commit is contained in:
parent
69c1b849a7
commit
790ab0b95f
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ impl Config {
|
|||
for rule in rules.rules {
|
||||
let idx = self.queries.insert(rule.queries);
|
||||
for keyword in rule.matches {
|
||||
self.matches.insert(keyword, idx as u32);
|
||||
self.matches.entry(keyword).or_insert(idx as u32);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue