From: XhmikosR Date: Thu, 24 Oct 2019 13:47:38 +0000 (+0300) Subject: Tighten regex a bit. X-Git-Tag: v5.0.0-alpha1~673 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=972369c997e4113607aaa002edd532e3d256f316;p=thirdparty%2Fbootstrap.git Tighten regex a bit. If we need to make this more robust in the future, we can revert this as needed. --- 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 -}}