Hi,
It looks like a validation is expected for parameters of type REGULAR_EXPRESSION
.
@RuleProperty(
key = "regex",
description = "My description",
type = "REGULAR_EXPRESSION",
defaultValue = ".+"
)
But, it does not seem to work…
Thank you
Regards
Nicolas
Colin
(Colin)
January 20, 2025, 1:57pm
2
Hey there.
What doesn’t seem to work? More details (screenshots, logs, error messages), please
Hi Colin,
When I activate a rule with parameter of type REGULAR_EXPRESSION
, I would expect an error message when saving the following because it is not a valid regular expression. But I don’t get any error message.
Validation works for instance for parameters of type INTEGER
:
Thank you
Regards
Nicolas
Colin
(Colin)
January 21, 2025, 10:48am
4
Thanks for clarifying. Indeed, it would be cool if rule parameters checked the validity of RegEx patterns, but that’s not the case today.
It probably wouldn’t be too difficult since we already check for valid patterns when RegEx is set for server settings.
I’ll pass this on as a good idea!