Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-06-04 11:45:13 +0000
committerUwe Stieber2013-06-04 11:45:13 +0000
commit5f9d0137a3a16a9a70c2bd18990f3d95e8624bba (patch)
tree82f68de7984eda0e43dbec0ed61bcf2f72a597e1 /target_explorer
parent7602f43042b315334a6470c3cebf949b2ae99ba1 (diff)
downloadorg.eclipse.tcf-5f9d0137a3a16a9a70c2bd18990f3d95e8624bba.tar.gz
org.eclipse.tcf-5f9d0137a3a16a9a70c2bd18990f3d95e8624bba.tar.xz
org.eclipse.tcf-5f9d0137a3a16a9a70c2bd18990f3d95e8624bba.zip
Target Explorer: Fix name or IP verify listener
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NameOrIPVerifyListener.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NameOrIPVerifyListener.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NameOrIPVerifyListener.java
index 8762b56a4..c4a721832 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NameOrIPVerifyListener.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NameOrIPVerifyListener.java
@@ -18,13 +18,11 @@ public class NameOrIPVerifyListener extends RegexVerifyListener {
// characters that can be set at the beginning
private static final String NAME_START_REGEX = "[a-zA-Z]"; //$NON-NLS-1$
// characters that can be set after the starting character
- private static final String NAME_FOLLOW_REGEX = "[a-zA-Z0-9]"; //$NON-NLS-1$
+ private static final String NAME_FOLLOW_REGEX = "[a-zA-Z0-9-_]"; //$NON-NLS-1$
// allowed separators in fragments
private static final String NAME_SEPERATOR_REGEX = "(\\-|_)"; //$NON-NLS-1$
// complete name fragment
- public static final String NAME_FRAGMENT_REGEX =
- "(" + NAME_START_REGEX + NAME_FOLLOW_REGEX + "*" + //$NON-NLS-1$ //$NON-NLS-2$
- "(" + NAME_SEPERATOR_REGEX + NAME_FOLLOW_REGEX + "+)*)"; //$NON-NLS-1$ //$NON-NLS-2$
+ public static final String NAME_FRAGMENT_REGEX = "(" + NAME_START_REGEX + NAME_FOLLOW_REGEX + "*)"; //$NON-NLS-1$ //$NON-NLS-2$
// open name fragment during typing
private static final String OPEN_NAME_FRAGMENT_REGEX =
"(" + NAME_FRAGMENT_REGEX + NAME_SEPERATOR_REGEX + "?)"; //$NON-NLS-1$ //$NON-NLS-2$

Back to the top