Skip to content

Commit 5638488

Browse files
authored
Merge pull request #2566 from NationalSecurityAgency/t#2564/table_paragraph_validation_fix2
#2564 - make TABLE_FIX regex single line so that Dot matches newline…
2 parents ef5eedd + 98f9856 commit 5638488

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

service/src/main/java/skills/services/CustomValidator.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class CustomValidator {
7979
private static final Pattern HTML = ~/(?s)<[\/]?\w+(?: .+?)*>/
8080
private static final Pattern CODEBLOCK = ~/(?ms)(^[`]{3}$.*?^[`]{3}$)/
8181

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

0 commit comments

Comments
 (0)