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 73ee5fe commit 05af6e5Copy full SHA for 05af6e5
find-fast.js
@@ -34,6 +34,11 @@ module.exports = function findFast(src, opts) {
34
if (token.type === acorn.tokTypes.parenR) { // End of fn() call
35
if (args.length === 1 && args[0].type === acorn.tokTypes.string) {
36
modules.strings.push(args[0].value);
37
+ } else if (args.length === 3 // A template string without any expressions
38
+ && args[0].type === acorn.tokTypes.backQuote
39
+ && args[1].type === acorn.tokTypes.template
40
+ && args[2].type === acorn.tokTypes.backQuote) {
41
+ modules.strings.push(args[1].value);
42
} else if (args.length > 0) {
43
modules.expressions.push(src.slice(args[0].start, args[args.length - 1].end));
44
}
0 commit comments