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 40c2201 commit 01674d6Copy full SHA for 01674d6
src/utils/parser.ts
@@ -14,8 +14,8 @@ export default function parse(expression: string): Options {
14
let from;
15
let to;
16
17
- // Search for `to` keyword (case insensitive) to split the expression into 2 parts
18
- if (/to|in|into|as/i.exec(expression)) {
+ // Search for separating keyword (case insensitive) to split the expression into 2 parts
+ if (/to|in|as/i.exec(expression)) {
19
const firstPart = expression.slice(0, expression.search(/to|in|as/i)).toUpperCase().trim();
20
21
from = firstPart.replace(/(?<currency_code>[^A-Za-z])/g, '');
0 commit comments