You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if we have a rule that contains a ,, everything surrounding it is automatically parsed as array, even if we want to have a string that contains a comma.
schema:
{ name: 'Brockhaus,Peter' }
rule name has to be Brockhaus\,Peter
cmd:
java -jar openvalidation-cli/target/openvalidation.jar --culture en --language javascript --rule "name has to be Brockhaus\,Peter" --schema "{ name: 'Brockhaus,Peter' }"
generates the code
huml.appendRule("",
["name"],
"name has to be Brockhaus\,Peter",
function(model) { returnhuml.NONE_OF(model.name, ["Brockhaus","Peter"]);},
false
);
It might be useful if we could escape the comma inside a rule like so: \,
The text was updated successfully, but these errors were encountered:
Currently if we have a rule that contains a
,
, everything surrounding it is automatically parsed as array, even if we want to have a string that contains a comma.schema:
{ name: 'Brockhaus,Peter' }
rule
name has to be Brockhaus\,Peter
cmd:
generates the code
It might be useful if we could escape the comma inside a rule like so:
\,
The text was updated successfully, but these errors were encountered: