Skip to content

Commit

Permalink
fix: generate build
Browse files Browse the repository at this point in the history
  • Loading branch information
mastermunj committed Mar 28, 2022
1 parent 40f4e3f commit 6d08e8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/ToWords.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class ToWords {
return words;
}
convertInternal(number) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
const locale = this.getLocale();
if (locale.config.exactWordsMapping) {
const exactMatch = (_b = (_a = locale.config) === null || _a === void 0 ? void 0 : _a.exactWordsMapping) === null || _b === void 0 ? void 0 : _b.find((elem) => {
Expand Down Expand Up @@ -213,14 +213,14 @@ class ToWords {
if (quotient > 1 && ((_f = (_e = locale.config) === null || _e === void 0 ? void 0 : _e.pluralWords) === null || _f === void 0 ? void 0 : _f.find((word) => word === match.value)) && ((_g = locale.config) === null || _g === void 0 ? void 0 : _g.pluralMark)) {
matchValue += locale.config.pluralMark;
}
if (quotient === 1 && ((_h = locale.config) === null || _h === void 0 ? void 0 : _h.ignoreOneForWords)) {
if (quotient === 1 && ((_j = (_h = locale.config) === null || _h === void 0 ? void 0 : _h.ignoreOneForWords) === null || _j === void 0 ? void 0 : _j.includes(matchValue))) {
words.push(matchValue);
}
else {
words.push(...this.convertInternal(quotient), matchValue);
}
if (remainder > 0) {
if ((_k = (_j = locale.config) === null || _j === void 0 ? void 0 : _j.splitWord) === null || _k === void 0 ? void 0 : _k.length) {
if ((_l = (_k = locale.config) === null || _k === void 0 ? void 0 : _k.splitWord) === null || _l === void 0 ? void 0 : _l.length) {
words.push(locale.config.splitWord);
}
words.push(...this.convertInternal(remainder));
Expand Down

0 comments on commit 6d08e8a

Please sign in to comment.