Skip to content

Commit ef5eedd

Browse files
author
rmmayo
committed
#2564 - backing out previous commit - using a feature branch instead
1 parent a242ad1 commit ef5eedd

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ class CustomValidator {
8282
private static final Pattern TABLE_FIX = ~/(?m)(^\n)(^[|].+[|]$\n^[|].*[-]{3,}.*[|]$)/
8383
private static final Pattern CODEBLOCK_FIX = ~/(?m)(^\n)(^[`]{3}$)/
8484
private static final Pattern LIST_FIX = ~/(?m)(^\n)(\s*\d\. |\* |- .*$)/
85-
private static final Pattern HEADING_FIX = ~/(?m)([(].+[)].*$)\n(\n.*$)/
8685

8786
@PostConstruct
8887
CustomValidator init() {
@@ -250,7 +249,6 @@ class CustomValidator {
250249
toValidate = TABLE_FIX.matcher(toValidate).replaceAll('$2')
251250
toValidate = CODEBLOCK_FIX.matcher(toValidate).replaceAll('$2')
252251
toValidate = LIST_FIX.matcher(toValidate).replaceAll('$2')
253-
toValidate = HEADING_FIX.matcher(toValidate).replaceAll('$1$2')
254252

255253
// remove two+ newlines from codeblocks so we do not split
256254
StringBuilder out = new StringBuilder()

0 commit comments

Comments
 (0)