Closed joseds closed 5 years ago
Hm, this has to do with how JSON.stringify
works. Regexps should ideally transform to its string representation on toJSON
, but seems they do not. It would be quite an effort to make this work differently, too much for the gain I would state :)
Hi, the debugger (version 1.5.0) shows regular expressions used when defining Cerebral form validation as
{}
instead of showing the string representation.Example:
results in
in the "STATE-TREE" debugger tab.