Skip to content

Commit a89da1d

Browse files
committedJul 25, 2022
ru: removes unnecessary replace in parseOrdinalNumberPattern
1 parent 87cc962 commit a89da1d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎src/locales/ru/constants.ts

-2
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@ export function parseOrdinalNumberPattern(match: string): number {
288288
if (ORDINAL_WORD_DICTIONARY[num] !== undefined) {
289289
return ORDINAL_WORD_DICTIONARY[num];
290290
}
291-
292-
num = num.replace(/(?:st|nd|rd|th)$/i, "");
293291
return parseInt(num);
294292
}
295293

0 commit comments

Comments
 (0)
Please sign in to comment.