diff options
author | Andreas Eriksen <andreer@pvv.ntnu.no> | 2018-01-31 11:18:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-31 11:18:35 +0100 |
commit | 67409053e645081e32a0e4f7f8f88ea1c3c53997 (patch) | |
tree | 1be469e02536c410444bb8d5e29243b299c3daca /controller-api/src | |
parent | 3cfd7e232f8c1bdcdd0bfb1bc22144b5d21366b7 (diff) |
extend character limit to 30 (matching longest in use today) (#4834)
Diffstat (limited to 'controller-api/src')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/identifiers/Identifier.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/identifiers/Identifier.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/identifiers/Identifier.java index 2fd75e25498..bdcde7360fc 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/identifiers/Identifier.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/identifiers/Identifier.java @@ -13,10 +13,10 @@ import java.util.regex.Pattern; public abstract class Identifier { protected static final String strictPatternExplanation = - "New tenant or application names must start with a letter, may contain no more than 20 " + + "New tenant or application names must start with a letter, may contain no more than 30 " + "characters, and may only contain lowercase letters, digits or dashes, but no double-dashes."; // TODO: Use this also for instances, if they ever get proper support. - protected static final Pattern strictPattern = Pattern.compile("^(?=.{1,20}$)[a-z](-?[a-z0-9]+)*$"); + protected static final Pattern strictPattern = Pattern.compile("^(?=.{1,30}$)[a-z](-?[a-z0-9]+)*$"); private static final Pattern serializedIdentifierPattern = Pattern.compile("[a-zA-Z0-9_-]+"); private static final Pattern serializedPattern = Pattern.compile("[a-zA-Z0-9_.-]+"); |