fix: correct validation pattern error message (#1879)

This commit is contained in:
Bartholomew 2018-11-21 23:14:01 +01:00 committed by Shawn Erquhart
parent 616117644c
commit 2a63940d97

View File

@ -130,7 +130,7 @@ export default class Widget extends Component {
if (pattern && !RegExp(pattern.first()).test(value)) {
const error = {
type: ValidationErrorTypes.PATTERN,
message: t('editor.editorControlPane.widget.pattern', {
message: t('editor.editorControlPane.widget.regexPattern', {
fieldLabel: field.get('label', field.get('name')),
pattern: pattern.last(),
}),