aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-09-01 13:23:58 +0300
committerXhmikosR <[email protected]>2019-09-06 11:57:50 +0300
commit2c9e22ef889b1b88df7b956d705a1069c10d5e68 (patch)
tree86dce798e69ebcc217ec7d969316762cba45b479
parentcf4ae75eff7d432962cc67d56d4ede3b9e3ac42c (diff)
downloadbootstrap-2c9e22ef889b1b88df7b956d705a1069c10d5e68.tar.xz
bootstrap-2c9e22ef889b1b88df7b956d705a1069c10d5e68.zip
getting-started/theming.md: throw an error if the regex doesn't succeed.
-rw-r--r--site/content/docs/4.3/getting-started/theming.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/site/content/docs/4.3/getting-started/theming.md b/site/content/docs/4.3/getting-started/theming.md
index 9c34c9ee3..1703770e7 100644
--- a/site/content/docs/4.3/getting-started/theming.md
+++ b/site/content/docs/4.3/getting-started/theming.md
@@ -373,6 +373,10 @@ Here are the variables we include (note that the `:root` is required). They're l
{{- $css := readFile "dist/css/bootstrap.css" -}}
{{- $match := findRE ":root {([^}]*)}" $css 1 -}}
+{{- if (eq (len $match) 0) -}}
+{{- errorf "Got no matches for :root in %q!" $.Page.Path -}}
+{{- end -}}
+
{{- index $match 0 -}}
{{< /root.inline >}}