git4idea: the entire refrence checked on the branch test

This commit is contained in:
Constantine Plotnikov
2010-07-31 04:17:05 +04:00
parent 79fddb1690
commit beef84ae5f
@@ -33,7 +33,7 @@ public class GitBranchNameValidator implements InputValidator {
// based on the git-check-ref-format command description
final String goodChar = "[!-~&&[^\\^~:\\[\\]\\?\\*\\./<>\\|'`]]";
final String component = "(?:" + goodChar + "+\\.?)+";
REF_FORMAT_PATTERN = Pattern.compile(component + "+(?:/*" + component + ")*");
REF_FORMAT_PATTERN = Pattern.compile("^" + component + "+(?:/*" + component + ")*$");
}
/**