octobercms/october · error · Error
The pattern parameter is not defined in the Regex table…
Error message
The pattern parameter is not defined in the Regex table validator configuration
What it means
Configuration guard inside Regex.validateValue: the validator options lack the required pattern key, so there is no regular expression to test the value against. The column's validation config omitted or misspelled 'pattern'.
Solutions
- Add pattern to the validator config (e.g. validation: { regex: { pattern: '^[a-z]+$', message: '...' } })
- Provide message for a custom error text
- Check the YAML for typos in the pattern key
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/widgets/table/assets/js/table.validator.regex.js:41 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/b016ec7514207a84.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/widgets/table/assets/js/table.validator.regex.js:41
};
Regex.prototype = Object.create(BaseProto)
Regex.prototype.constructor = Regex
/*
* Validates a value and returns the error message. If there
* are no errors, returns undefined.
* The rowData parameter is an object containing all values in the
* target row.
*/
Regex.prototype.validateValue = function(value, rowData) {
value = this.trim(value)
if (value.length == 0)
return
if (this.options.pattern === undefined)
throw new Error('The pattern parameter is not defined in the Regex table validator configuration')
var regexObj = new RegExp(this.options.pattern, this.options.modifiers)
if (!regexObj.test(value))
return this.getMessage("Invalid value format.")
return
}
$.oc.table.validator.regex = Regex
}(window.jQuery);View on GitHub (pinned to b608633a7e)