tpl: Add replaceRE to the "smoke tests"

Fixes #2063
This commit is contained in:
digitalcraftsman 2016-04-08 21:36:35 +02:00
parent f2ff77f3ac
commit 6c900380dc

View file

@ -107,6 +107,7 @@ readFile: {{ readFile "README.txt" }}
relURL 1: {{ "http://gohugo.io/" | relURL }}
relURL 2: {{ "mystyle.css" | relURL }}
replace: {{ replace "Batman and Robin" "Robin" "Catwoman" }}
replaceRE: {{ "http://gohugo.io/docs" | replaceRE "^https?://([^/]+).*" "$1" }}
safeCSS: {{ "Bat&Man" | safeCSS | safeCSS }}
safeHTML: {{ "Bat&Man" | safeHTML | safeHTML }}
safeHTML: {{ "Bat&Man" | safeHTML }}
@ -157,6 +158,7 @@ readFile: Hugo Rocks!
relURL 1: http://gohugo.io/
relURL 2: /hugo/mystyle.css
replace: Batman and Catwoman
replaceRE: gohugo.io
safeCSS: Bat&Man
safeHTML: Bat&Man
safeHTML: Bat&Man