From 972369c997e4113607aaa002edd532e3d256f316 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 24 Oct 2019 16:47:38 +0300 Subject: [PATCH] Tighten regex a bit. If we need to make this more robust in the future, we can revert this as needed. --- site/layouts/shortcodes/example.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/layouts/shortcodes/example.html b/site/layouts/shortcodes/example.html index b1385653a2..6701b1377b 100644 --- a/site/layouts/shortcodes/example.html +++ b/site/layouts/shortcodes/example.html @@ -19,7 +19,7 @@ {{- end -}} {{- if eq $show_markup true -}} - {{- $content := replaceRE `\n` `...` $input -}} - {{- $content = replaceRE `(class="\s*?")` "" $content -}} + {{- $content := replaceRE `\n` `...` $input -}} + {{- $content = replaceRE `(class=" *?")` "" $content -}} {{- highlight (trim $content "\n") "html" "" -}} {{- end -}}