Skip to content

Commit

Permalink
Replace an alternation with a character class
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalre committed Feb 28, 2023
1 parent f6169e1 commit 01c201f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processor/block-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { GenericProcessor } from "./generic-processor"

export class BlockProcessor extends GenericProcessor {
constructor(text: string) {
super("block", /(\||>)((?!.*:).|[\r\n])*/g, text)
super("block", /([|>])((?!.*:).|[\r\n])*/g, text)
}
}

0 comments on commit 01c201f

Please sign in to comment.