File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,20 @@ export function makeHelper(version) {
13
13
// e.g. 1.0.0-alpha.1+4jds75hf
14
14
15
15
// Allow use of 'hideSha' and 'hideVersion' For backwards compatibility
16
- hash . versionOnly = hash . versionOnly || hash . hideSha ;
17
- hash . shaOnly = hash . shaOnly || hash . hideVersion ;
16
+ let versionOnly = hash . versionOnly || hash . hideSha ;
17
+ let shaOnly = hash . shaOnly || hash . hideVersion ;
18
18
19
19
let match = null ;
20
20
21
- if ( hash . versionOnly ) {
21
+ if ( versionOnly ) {
22
22
if ( hash . showExtended ) {
23
23
match = version . match ( versionExtendedRegExp ) ; // 1.0.0-alpha.1
24
24
} else {
25
25
match = version . match ( versionRegExp ) ; // 1.0.0
26
26
}
27
27
}
28
28
29
- if ( hash . shaOnly ) {
29
+ if ( shaOnly ) {
30
30
match = version . match ( shaRegExp ) ; // 4jds75hf
31
31
}
32
32
You can’t perform that action at this time.
0 commit comments