Got a issue with "syntax error, unexpected '/'"
the line is
$this->useCustomOCP->addMethod("getServerValidateArguments", fn() => /^[10]+$/);
I dont have any validation on the field.
do you know what i should check for?
thanks
Got a issue with "syntax error, unexpected '/'"
the line is
$this->useCustomOCP->addMethod("getServerValidateArguments", fn() => /^[10]+$/);
I dont have any validation on the field.
do you know what i should check for?
thanks
As said in the docs on Arguments (Server-side):
If Regular Expression, arguments must be the pattern to search for, as a single or double quoted string.