Phpmaker 2026.12 - Fields Validation - Regular Expression

Hi to all,
Phpmaker 2026.12

I've two fields (latitudine, longitudine) that store coordinates in +-123.123456 format

I want to validate fields with a regular expression.

So this is what I am doing, in Edit Tag - Validation:

Validate: Regular Expression
Arguments (server side) : '/^-?\d{1,3}.\d{1,6}$/'
Arguments (client side) : /^-?\d{1,3}.\d{1,6}$/

But the code is generated this way:
["latitudine", [fields.longitudine.visible && fields.longitudine.required ? ew.Validators.required(fields.longitudine.caption) : null, ew.Validators.custom(Regular Expression, /^-?\d{1,3}\.\d{1,6}$/)], fields.longitudine.isInvalid],

Causing errors!

The correct output should be:
["latitudine", [fields.latitudine.visible && fields.latitudine.required ? ew.Validators.required(fields.latitudine.caption) : null, ew.Validators.regex(/^-?\d{1,3}\.\d{1,6}$/)], fields.latitudine.isInvalid],

And if I manually correct the lines it works.

What break the code generation?

Thanks!

Try update to the latest template (Tools -> Update Template)

I've done but nothing changes.. can someone replicate trying Validate: Regular Expression?

Ok, I've tried again right now to update the templare and it is working.
With the new template the code is fixed
Thanks a lot!