# HG changeset patch # User Ed Swartz # Date 1271090673 18000 # Node ID 7c9ed592cb21bcbbed58c893f7942f9edd193526 # Parent 214c435e2d15b11ba442bb24545a08c2da4748c6 Fix bug 10967 -- accept dash in target filename diff -r 214c435e2d15 -r 7c9ed592cb21 project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/OverviewPage.java --- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/OverviewPage.java Fri Apr 09 14:06:06 2010 -0500 +++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/mmpEditor/OverviewPage.java Mon Apr 12 11:44:33 2010 -0500 @@ -292,7 +292,7 @@ } private void hookControls() { - RegExInputValidator targetNameValidator = new RegExInputValidator("^[\\w|\\.]+$", false, Messages.OverviewPage_targetNameValidationErr); //$NON-NLS-1$ + RegExInputValidator targetNameValidator = new RegExInputValidator("^[A-Za-z0-9_\\.-]+$", false, Messages.OverviewPage_targetNameValidationErr); //$NON-NLS-1$ SingleSettingTextHandler handler = new SingleSettingTextHandler(targetNameText, new FormEditorEditingContext(editorContext.editor, targetNameText), (isMMPFile()) ? targetNameValidator : null,