mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 07:28:35 +02:00
handle the ' too
This commit is contained in:
parent
e8d3bf8667
commit
0e61b0ce5f
2 changed files with 8 additions and 1 deletions
|
@ -1664,7 +1664,7 @@ GitEngine.prototype.resolveStringRef = function(ref) {
|
|||
return this.refs[ref];
|
||||
}
|
||||
// Commit hashes like C4 are case insensitive
|
||||
if (ref.match(/^c\d+$/) && this.refs[ref.toUpperCase()]) {
|
||||
if (ref.match(/^c\d+'*/) && this.refs[ref.toUpperCase()]) {
|
||||
return this.refs[ref.toUpperCase()];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue