Skip to content

Commit c13db0d

Browse files
committed
Fixing breaks in switch
1 parent b30c953 commit c13db0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/common/extensions/String.extensions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ String.prototype._parseNumberNegativePattern = function (numberFormat: ICultureN
101101
case 4:
102102
negativeSign = ' ' + negativeSign;
103103
positiveSign = ' ' + positiveSign;
104+
break;
104105
case 3:
105106
if (this.endsWith(negativeSign)) {
106107
return ['-', this.substr(0, this.length - negativeSign.length)];
@@ -112,6 +113,7 @@ String.prototype._parseNumberNegativePattern = function (numberFormat: ICultureN
112113
case 2:
113114
negativeSign += ' ';
114115
positiveSign += ' ';
116+
break;
115117
case 1: if (this.startsWith(negativeSign)) {
116118
return ['-', this.substr(negativeSign.length)];
117119
}
@@ -125,4 +127,4 @@ String.prototype._parseNumberNegativePattern = function (numberFormat: ICultureN
125127
}
126128
}
127129
return ['', this];
128-
};
130+
};

0 commit comments

Comments
 (0)