fix: correct validation pattern error message (#1879)
This commit is contained in:
parent
616117644c
commit
2a63940d97
@ -130,7 +130,7 @@ export default class Widget extends Component {
|
|||||||
if (pattern && !RegExp(pattern.first()).test(value)) {
|
if (pattern && !RegExp(pattern.first()).test(value)) {
|
||||||
const error = {
|
const error = {
|
||||||
type: ValidationErrorTypes.PATTERN,
|
type: ValidationErrorTypes.PATTERN,
|
||||||
message: t('editor.editorControlPane.widget.pattern', {
|
message: t('editor.editorControlPane.widget.regexPattern', {
|
||||||
fieldLabel: field.get('label', field.get('name')),
|
fieldLabel: field.get('label', field.get('name')),
|
||||||
pattern: pattern.last(),
|
pattern: pattern.last(),
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user