Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
Fixes #54
Browse files Browse the repository at this point in the history
  • Loading branch information
lelinhtinh committed Nov 20, 2020
1 parent 6238f98 commit 5aeb57c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var utils = {

methodChain: (str) => {
str = str.replace(
/(?<=(\b(return|throw|in|of|new|delete|default|function|async|await|get|set)|\{|\}|\*))\s*\[('|")((?![\d\W])[\w$]*)\3\]\s*\(/gi,
/(?<=(\b(return|throw|in|of|new|delete|default|function|async|await|get|set)|\{|\*))\s*\[('|")((?![\d\W])[\w$]*)\3\]\s*\(/g,
' $4( ',
);
str = str.replace(/(?<=((?![\d\W])[\w$]*)|\]|\))\[('|")((?![\d\W])[\w$]*)\2\]/gi, ' .$3 ');
Expand Down

0 comments on commit 5aeb57c

Please sign in to comment.