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-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ var pattern_assembler = function () {
45
45
returnpatternlab.patterns[i];
46
46
}
47
47
}
48
-
plutils.logOrange('Could not find pattern referenced with partial synxtax "'+partialName+'". This can occur when a pattern was renamed, moved, or no longer exists but it still called within a different template somewhere.');
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.');
49
49
returnundefined;
50
50
}
51
51
@@ -440,8 +440,8 @@ var pattern_assembler = function () {
440
440
functionparseDataLinksHelper(patternlab,obj,key){
441
441
varlinkRE,dataObjAsString,linkMatches;
442
442
443
-
//check for link.patternPartial
444
-
linkRE=/link\.[A-z0-9-_]+(?!.)/g;
443
+
//check for 'link.patternPartial'
444
+
linkRE=/(?:'|")(link\.[A-z0-9-_]+)(?:'|")/g;
445
445
446
446
//stringify the passed in object
447
447
dataObjAsString=JSON5.stringify(obj);
@@ -456,7 +456,7 @@ var pattern_assembler = function () {
0 commit comments