Skip to content

Commit 24ef9ba

Browse files
committed
Check for non strings for gonales methods
1 parent 6c8f13f commit 24ef9ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ helpers.attemptTraversal = function (node, traversalPath) {
309309
currentNodeList = [],
310310
processChildNode = function processChildNode (child) {
311311
child.forEach(traversalPath[i], function (n) {
312-
if (n.content && n.content.some && n.contains('interpolation')) {
312+
if (n.content && typeof n.content !== 'string' && n.contains('interpolation')) {
313313
return false;
314314
}
315315
return nextNodeList.push(n);

0 commit comments

Comments
 (0)