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 d87556b commit 3ed92a0Copy full SHA for 3ed92a0
src/findTokens.js
@@ -40,7 +40,7 @@ module.exports = (
40
CallExpression: (path) => {
41
if (path.node.callee.name === 'getDataElementValue') {
42
const tokenNameNode = path.node.arguments[0];
43
- tokens.push(tokenNameNode.value);
+ tokens.push(tokenNameNode.name || tokenNameNode.value);
44
}
45
46
});
test/fixtures/findTokens/container.js
@@ -146,7 +146,7 @@ module.exports = (getDataElementValues) => ({
146
const y6 = 'some getDataElementValue(\'core560\')';
147
getDataElementValue('core561');
148
getDataElementValue('core562');
149
-
+ getDataElementValue(reactor00650032);
150
//getDataElementValue('commented');
151
152
const z = 5 + getDataElementValue('core');
0 commit comments