debug+
This commit is contained in:
parent
b951feeabd
commit
04c81727fb
2 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,7 @@ module.exports = {
|
|||
connectTimeout: 2000,
|
||||
|
||||
logging: ["error", "warn"],
|
||||
maxQueryExecutionTime: 500,
|
||||
maxQueryExecutionTime: 1000,
|
||||
|
||||
// Entities
|
||||
entities: [entities],
|
||||
|
|
|
@ -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
Reference in a new issue