2
0
Fork 0
mirror of https://github.com/ethauvin/rife2.git synced 2025-07-12 09:03:41 -07:00

Make validation builder filtered tags more permissive in their content

This commit is contained in:
Geert Bevin 2023-01-04 06:43:22 -05:00
parent e16e584e2e
commit ba187f325b

View file

@ -23,9 +23,9 @@ public interface ValidationBuilder extends Cloneable {
String ID_ERRORS_FALLBACK = "errors:";
String ID_ERRORS_WILDCARD = "errors:*";
String TAG_ERRORS = "(?=(?<=^" + PREFIX_ERRORS + ")|\\G(?<!^))\\s*(\\w+)\\s*,?(?=[\\w,]+$|$)";
String TAG_ERRORMESSAGE = "(?=(?<=^" + PREFIX_ERRORMESSAGE + ")|\\G(?<!^))\\s*(\\w+)\\s*,?(?=[\\w,]+$|$)";
String TAG_MARK = "(?:^" + PREFIX_MARK + "(?:(\\w+):)?|\\G(?<!^))\\s*(\\w+)\\s*,?(?=[\\w,]+$|$)";
String TAG_ERRORS = "(?=(?<=^" + PREFIX_ERRORS + ")|\\G(?<!^))\\s*([^,]+)\\s*,?(?=[[^,],]+$|$)";
String TAG_ERRORMESSAGE = "(?=(?<=^" + PREFIX_ERRORMESSAGE + ")|\\G(?<!^))\\s*([^,]+)\\s*,?(?=[[^,],]+$|$)";
String TAG_MARK = "(?:^" + PREFIX_MARK + "(?:([^:]+):)?|\\G(?<!^))\\s*([^,]+)\\s*,?(?=[[^,],]+$|$)";
void setFallbackErrorArea(Template template, String message);