mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git4idea: the entire refrence checked on the branch test
This commit is contained in:
@@ -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 + ")*$");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user