diff --git a/lib/success.ts b/lib/success.ts index f130bbe..deb1fb6 100644 --- a/lib/success.ts +++ b/lib/success.ts @@ -9,7 +9,7 @@ function getTickets(config: PluginConfig, context: GenerateNotesContext): string let patterns: RegExp[] = []; if(config.ticketRegex) { - patterns = [new RegExp(config.ticketRegex, 'giu')]; + patterns = [new RegExp(escapeRegExp(config.ticketRegex), 'giu')]; } else { patterns = config.ticketPrefixes! .map(prefix => new RegExp(`\\b${escapeRegExp(prefix)}-(\\d+)\\b`, 'giu'));