summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkh5325.kim <kh5325.kim@samsung.com>2013-08-19 15:02:07 +0900
committerkh5325.kim <kh5325.kim@samsung.com>2013-08-19 15:02:07 +0900
commitebebae294f3de7d852af49a2592f1294ec2b282d (patch)
treea1c20422b342782e15843fc88215ba25b01984f8
parent1356cbf44c0499fed153637359b9c78db2d128f3 (diff)
downloadcommon-eplugin-ebebae294f3de7d852af49a2592f1294ec2b282d.tar.gz
common-eplugin-ebebae294f3de7d852af49a2592f1294ec2b282d.tar.bz2
common-eplugin-ebebae294f3de7d852af49a2592f1294ec2b282d.zip
Modified NAME_PATTERN to allow '.'
Change-Id: I4f16131911867822a25c86be4fe83e60e8352fc8
-rw-r--r--org.tizen.common.project/src/org/tizen/common/project/CommonProjectConstants.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.tizen.common.project/src/org/tizen/common/project/CommonProjectConstants.java b/org.tizen.common.project/src/org/tizen/common/project/CommonProjectConstants.java
index 502834768..3e2a49acf 100644
--- a/org.tizen.common.project/src/org/tizen/common/project/CommonProjectConstants.java
+++ b/org.tizen.common.project/src/org/tizen/common/project/CommonProjectConstants.java
@@ -36,13 +36,14 @@ public final class CommonProjectConstants {
public final static char[] INVALID_RESOURCE_CHARACTERS;
static {
- PROJECT_NAME_PATTERN = "^[a-zA-Z][a-zA-Z0-9-]{" //$NON-NLS-1$
+ PROJECT_NAME_PATTERN = "^[a-zA-Z][a-zA-Z0-9-\\.]{" //$NON-NLS-1$
+ ( PROJECT_NAME_MIN_LENGTH - 1 ) + "," //$NON-NLS-1$
- + ( PROJECT_NAME_MAX_LENGTH - 1 ) + "}$"; //$NON-NLS-1$
+ + ( PROJECT_NAME_MAX_LENGTH - 1 ) + "}(?<!\\.)$"; //$NON-NLS-1$
// Regular Expression Note :
// A first character must have case-insensitive alphabet.
// Next characters have case-insensitive alphabet or numeric or hyphen
// Total character length scope is a minimum of 3 and maximum of 50 characters.
+ // '.' is allowed but should not end with it - nagative lookbehind (?<!\\.)
INVALID_RESOURCE_CHARACTERS = new char[] { '`', '#', '$', ':' };
}