Skip to content

Commit

Permalink
Merge pull request #2566 from NationalSecurityAgency/t#2564/table_par…
Browse files Browse the repository at this point in the history
…agraph_validation_fix2

#2564 - make TABLE_FIX regex single line  so that Dot matches newline…
  • Loading branch information
sudo-may authored Jun 5, 2024
2 parents ef5eedd + 98f9856 commit 5638488
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 5638488

Please sign in to comment.