Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SIGPUBLIC
unantes-orientation-active
Commits
4f7a1d1c
Commit
4f7a1d1c
authored
Sep 30, 2021
by
Kevin Robert
Browse files
UNOTOPLYS-325 : Evolution de la regex de validation des références.
parent
30d1bc12
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/unantes/orientactive/validation/ValidationUtils.java
View file @
4f7a1d1c
...
...
@@ -7,7 +7,7 @@ import com.unantes.orientactive.web.rest.errors.InvalidReferenceException;
public
class
ValidationUtils
{
public
static
Pattern
PATTERN_REFERENCE
=
Pattern
.
compile
(
"^[a-zA-Z]+[a-zA-Z0-9_]
+
$"
);
public
static
Pattern
PATTERN_REFERENCE
=
Pattern
.
compile
(
"^[a-zA-Z]+[a-zA-Z0-9_]
*
$"
);
public
static
String
RESERVED_SEPARATOR
=
"__"
;
public
static
void
validateReference
(
final
String
reference
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment