debug+
This commit is contained in:
parent
b951feeabd
commit
04c81727fb
2 changed files with 4 additions and 1 deletions
|
@ -53,6 +53,9 @@ export const MatchRegexTrigger = automodTrigger<MatchResultType>()({
|
|||
if (!combinedRegexCache.has(trigger)) {
|
||||
const combinedPattern = trigger.patterns.map((p) => `(?:${p.source})`).join("|");
|
||||
const combinedRegex = new RegExp(combinedPattern, trigger.case_sensitive ? "" : "i");
|
||||
if (trigger.patterns.some((r) => r.source === "。")) {
|
||||
console.log("!! COMBINED PATTERN !!", combinedPattern);
|
||||
}
|
||||
combinedRegexCache.set(trigger, combinedRegex);
|
||||
}
|
||||
const regex = combinedRegexCache.get(trigger)!;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue