Maybe I’m doing something wrong here but the following regex just will not validate as true - despite this being perfectly valid …
let my_string = “012345”; // included here for the avoidance of doubt - but it actually comes from a fragment_presenter.get_value() call
let regex = new RegExp(“^\d{6}$”);
cs.log(“Test Result: “ + regex.test(my_string));
please excuse any minor code transcription issues
It’s supposed to return true if my_string is exactly 6 characters in length. Works fine in every regex validator I can find but not in CS. Always comes back false.
Before anyone asks - yes my actual string is tested as being 6 digits long ![]()
This specifically is a fragment validator component.
Thoughts ?