Skip to content

Commit 01674d6

Browse files
committed
fix
1 parent 40c2201 commit 01674d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export default function parse(expression: string): Options {
1414
let from;
1515
let to;
1616

17-
// Search for `to` keyword (case insensitive) to split the expression into 2 parts
18-
if (/to|in|into|as/i.exec(expression)) {
17+
// Search for separating keyword (case insensitive) to split the expression into 2 parts
18+
if (/to|in|as/i.exec(expression)) {
1919
const firstPart = expression.slice(0, expression.search(/to|in|as/i)).toUpperCase().trim();
2020

2121
from = firstPart.replace(/(?<currency_code>[^A-Za-z])/g, '');

0 commit comments

Comments
 (0)