You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/lib/pattern_assembler.js
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -45,9 +45,7 @@ var pattern_assembler = function () {
45
45
returnpatternlab.patterns[i];
46
46
}
47
47
}
48
-
if(patternlab.config.debug){
49
-
console.error('Could not find pattern with partial '+partialName);
50
-
}
48
+
plutils.logOrange('Could not find pattern referenced with partial syntax '+partialName+'. This can occur when a pattern was renamed, moved, or no longer exists but it still called within a different template somewhere.');
51
49
returnundefined;
52
50
}
53
51
@@ -442,8 +440,8 @@ var pattern_assembler = function () {
442
440
functionparseDataLinksHelper(patternlab,obj,key){
443
441
varlinkRE,dataObjAsString,linkMatches;
444
442
445
-
//check for link.patternPartial
446
-
linkRE=/link\.[A-z0-9-_]+/g;
443
+
//check for 'link.patternPartial'
444
+
linkRE=/(?:'|")(link\.[A-z0-9-_]+)(?:'|")/g;
447
445
448
446
//stringify the passed in object
449
447
dataObjAsString=JSON5.stringify(obj);
@@ -458,7 +456,7 @@ var pattern_assembler = function () {
0 commit comments