File tree Expand file tree Collapse file tree
src/main/java/org/ligoj/app/plugin/prov/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ public abstract class AbstractProvTag extends AbstractPersistable<Integer> imple
3131 /**
3232 * Tag key name and value pattern.
3333 */
34- public static final String PATTERN = "[\\ p{L}\\ d\\ s+-=._/@&#']+" ;
34+ public static final String PATTERN_KEY = "[\\ p{L}\\ d\\ s+-=._/@&#']+" ;
35+ public static final String PATTERN_VALUE = "[()\\ p{L}\\ d\\ s+-=._/@&#']+" ;
3536
3637 /**
3738 * SID
@@ -42,14 +43,14 @@ public abstract class AbstractProvTag extends AbstractPersistable<Integer> imple
4243 * Object name
4344 */
4445 @ NotBlank
45- @ Pattern (regexp = AbstractProvTag .PATTERN )
46+ @ Pattern (regexp = AbstractProvTag .PATTERN_KEY )
4647 private String name ;
4748
4849 /**
4950 * Value as string.
5051 */
5152 @ Size (max = 1024 , min = 1 )
52- @ Pattern (regexp = AbstractProvTag .PATTERN )
53+ @ Pattern (regexp = AbstractProvTag .PATTERN_VALUE )
5354 @ Column (length = 1024 )
5455 private String value ;
5556
You can’t perform that action at this time.
0 commit comments