Skip to content

Commit

Permalink
#2564 - make TABLE_FIX regex single line so that Dot matches newline …
Browse files Browse the repository at this point in the history
…characters
  • Loading branch information
rmmayo committed Jun 4, 2024
1 parent ef5eedd commit 98f9856
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class CustomValidator {
private static final Pattern HTML = ~/(?s)<[\/]?\w+(?: .+?)*>/
private static final Pattern CODEBLOCK = ~/(?ms)(^[`]{3}$.*?^[`]{3}$)/

private static final Pattern TABLE_FIX = ~/(?m)(^\n)(^[|].+[|]$\n^[|].*[-]{3,}.*[|]$)/
private static final Pattern TABLE_FIX = ~/(?ms)(^\n)(^[|].+[|]$\n^[|].*[-]{3,}.*[|]$)/
private static final Pattern CODEBLOCK_FIX = ~/(?m)(^\n)(^[`]{3}$)/
private static final Pattern LIST_FIX = ~/(?m)(^\n)(\s*\d\. |\* |- .*$)/

Expand Down
Loading

0 comments on commit 98f9856

Please sign in to comment.