mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
Explicitly fail when unsupported range operator is specified
This commit is contained in:
parent
f178f6c118
commit
d4a2fbb2de
2 changed files with 8 additions and 1 deletions
|
@ -1665,7 +1665,7 @@ GitEngine.prototype.resolveStringRef = function(ref) {
|
|||
// Attempt to split ref string into a reference and a string of ~ and ^ modifiers.
|
||||
var startRef = null;
|
||||
var relative = null;
|
||||
var regex = /^([a-zA-Z0-9]+)(([~\^]\d*)*)/;
|
||||
var regex = /^([a-zA-Z0-9]+)(([~\^]\d*)*)$/;
|
||||
var matches = regex.exec(ref);
|
||||
if (matches) {
|
||||
startRef = matches[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue