We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 069fcb1 commit 43cce70Copy full SHA for 43cce70
1 file changed
workers/loc.api/sync/currency.converter/index.js
@@ -348,17 +348,25 @@ class CurrencyConverter {
348
if (typeof symbol !== 'string') {
349
return ''
350
}
351
- if (symbol.length < 8) {
+ if (symbol.length < 6) {
352
return symbol
353
354
+
355
+ const hasFlag = (
356
+ symbol.startsWith('t') ||
357
+ symbol.startsWith('f')
358
+ )
359
+ const flag = hasFlag
360
+ ? symbol[0]
361
+ : 't'
362
363
if (
- symbol[0] !== 't' &&
- symbol[0] !== 'f'
364
+ symbol.length === 7 &&
365
+ hasFlag
366
) {
367
368
369
- const flag = symbol[0]
370
const [firstSymb, lastSymb] = splitSymbolPairs(symbol)
371
const _firstSymb = this._getConvertingSymb(firstSymb)
372
const _lastSymb = this._getConvertingSymb(lastSymb)
0 commit comments