Updated operation entry validation regex to allow for '/' in ids.
This commit is contained in:
@ -175,7 +175,7 @@ public final class Config {
|
||||
private static boolean isValidOperationEntry(Object entry) {
|
||||
return entry instanceof String && ((String) entry).matches(
|
||||
String.format(
|
||||
"(?i)^(\\#?\\w+:\\w+),(%s),(\\d*\\.?\\d+),(\\d*\\.?\\d+),(\\d+),(TRUE|FALSE)$",
|
||||
"(?i)^(\\#?\\w+:[\\w\\/]+),(%s),(\\d*\\.?\\d+),(\\d*\\.?\\d+),(\\d+),(TRUE|FALSE)$",
|
||||
Arrays.stream(OperationType.values()).map(OperationType::toString).collect(Collectors.joining("|"))
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user