Skip to content

Commit ace475e

Browse files
authored
Merge pull request #5689 from mportuga/issues/3385
fix(#3885): Update currency symbols list
2 parents 4354165 + c00f1e1 commit ace475e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/js/core/constants.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,21 @@
154154
max: 32
155155
},
156156

157-
// TODO(c0bra): Create full list of these somehow. NOTE: do any allow a space before or after them?
158-
CURRENCY_SYMBOLS: ['ƒ', '$', '£', '$', '¤', '¥', '៛', '₩', '₱', '฿', '₫'],
157+
/**
158+
* @ngdoc array
159+
* @name CURRENCY_SYMBOLS
160+
* @propertyOf ui.grid.service:uiGridConstants
161+
* @description A list of all presently circulating currency symbols that was copied from
162+
* https://en.wikipedia.org/wiki/Currency_symbol#List_of_presently-circulating_currency_symbols
163+
*
164+
* Can be used on {@link ui.grid.class:rowSorter} to create a number string regex that ignores currency symbols.
165+
*/
166+
CURRENCY_SYMBOLS: ['¤', '؋', 'Ar', 'Ƀ', '฿', 'B/.', 'Br', 'Bs.', 'Bs.F.', 'GH₵', '¢', 'c', 'Ch.', '₡', 'C$', 'D', 'ден',
167+
'دج', '.د.ب', 'د.ع', 'JD', 'د.ك', 'ل.د', 'дин', 'د.ت', 'د.م.', 'د.إ', 'Db', '$', '₫', 'Esc', '€', 'ƒ', 'Ft', 'FBu',
168+
'FCFA', 'CFA', 'Fr', 'FRw', 'G', 'gr', '₲', 'h', '₴', '₭', 'Kč', 'kr', 'kn', 'MK', 'ZK', 'Kz', 'K', 'L', 'Le', 'лв',
169+
'E', 'lp', 'M', 'KM', 'MT', '₥', 'Nfk', '₦', 'Nu.', 'UM', 'T$', 'MOP$', '₱', 'Pt.', '£', 'ج.م.', 'LL', 'LS', 'P', 'Q',
170+
'q', 'R', 'R$', 'ر.ع.', 'ر.ق', 'ر.س', '៛', 'RM', 'p', 'Rf.', '₹', '₨', 'SRe', 'Rp', '₪', 'Ksh', 'Sh.So.', 'USh', 'S/',
171+
'SDR', 'сом', '৳ ', 'WS$', '₮', 'VT', '₩', '¥', 'zł'],
159172

160173
/**
161174
* @ngdoc object

0 commit comments

Comments
 (0)