fix error message for cv.matches_regex (#16175)

This commit is contained in:
Nate Clark
2018-08-24 17:27:12 -04:00
committed by Paulus Schoutsen
parent e91a1529e4
commit 84365cde07

View File

@@ -92,7 +92,7 @@ def matches_regex(regex):
if not regex.match(value):
raise vol.Invalid('value {} does not match regular expression {}'
.format(regex.pattern, value))
.format(value, regex.pattern))
return value
return validator