File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,16 @@ exports.caseInsensitive = caseInsensitive;
46
46
47
47
function caseSensitive ( aInstallName , aMoreThanInstallName ) {
48
48
49
- var rExpression = null ;
50
49
var rMatchExpression = aMoreThanInstallName ? / ^ ( .* ) \/ ( .* ) \/ ( .* ) \/ ( .* ) $ / : / ^ ( .* ) \/ ( .* ) $ / ;
51
50
var username = '' ;
51
+ var char = null ;
52
+ var rExpression = null ;
52
53
53
54
var matches = aInstallName . match ( rMatchExpression ) ;
54
55
if ( matches ) {
55
56
if ( aMoreThanInstallName ) {
56
57
57
- for ( var char in matches [ 2 ] ) {
58
+ for ( char in matches [ 2 ] ) {
58
59
59
60
if ( matches [ 2 ] [ char ] . toLowerCase ( ) !== matches [ 2 ] [ char ] . toUpperCase ( ) ) {
60
61
username += '[' +
@@ -76,7 +77,7 @@ function caseSensitive(aInstallName, aMoreThanInstallName) {
76
77
) ;
77
78
} else {
78
79
79
- for ( var char in matches [ 1 ] ) {
80
+ for ( char in matches [ 1 ] ) {
80
81
81
82
if ( matches [ 1 ] [ char ] . toLowerCase ( ) !== matches [ 1 ] [ char ] . toUpperCase ( ) ) {
82
83
username += '[' +
You can’t perform that action at this time.
0 commit comments