{"record":{"id":"b016ec7514207a84","repo":"octobercms/october","slug":"the-pattern-parameter-is-not-defined-in-the-regex","errorCode":null,"errorMessage":"The pattern parameter is not defined in the Regex table validator configuration","messagePattern":"The pattern parameter is not defined in the Regex table validator configuration","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/widgets/table/assets/js/table.validator.regex.js","lineNumber":41,"sourceCode":"    };\n\n    Regex.prototype = Object.create(BaseProto)\n    Regex.prototype.constructor = Regex\n\n    /*\n     * Validates a value and returns the error message. If there\n     * are no errors, returns undefined.\n     * The rowData parameter is an object containing all values in the\n     * target row.\n     */\n    Regex.prototype.validateValue = function(value, rowData) {\n        value = this.trim(value)\n\n        if (value.length == 0)\n            return\n\n        if (this.options.pattern === undefined)\n            throw new Error('The pattern parameter is not defined in the Regex table validator configuration')\n\n        var regexObj = new RegExp(this.options.pattern, this.options.modifiers)\n\n        if (!regexObj.test(value))\n            return this.getMessage(\"Invalid value format.\")\n\n        return\n    }\n\n    $.oc.table.validator.regex = Regex\n}(window.jQuery);","sourceCodeStart":23,"sourceCodeEnd":52,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/widgets/table/assets/js/table.validator.regex.js#L23-L52","documentation":"Error \"The pattern parameter is not defined in the Regex table validator configuration\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/widgets/table/assets/js/table.validator.regex.js:41 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}