Merge pull request #693 from medifle/patch-2

Fix return
This commit is contained in:
Ilya Kantor 2018-12-24 12:49:31 +03:00 committed by GitHub
commit eb5416be94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ function parse(expr) {
let result = expr.match(reg);
if (!result) return;
if (!result) return [];
result.shift();
return result;