mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-18 15:54:26 +01:00
getting-started/theming.md: throw an error if the regex doesn't succeed.
This commit is contained in:
parent
cf4ae75eff
commit
2c9e22ef88
@ -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" -}}
|
{{- $css := readFile "dist/css/bootstrap.css" -}}
|
||||||
{{- $match := findRE ":root {([^}]*)}" $css 1 -}}
|
{{- $match := findRE ":root {([^}]*)}" $css 1 -}}
|
||||||
|
|
||||||
|
{{- if (eq (len $match) 0) -}}
|
||||||
|
{{- errorf "Got no matches for :root in %q!" $.Page.Path -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- index $match 0 -}}
|
{{- index $match 0 -}}
|
||||||
|
|
||||||
{{< /root.inline >}}
|
{{< /root.inline >}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user