Skip to content

Commit f67126d

Browse files
committed
encode data links
fixes #424
1 parent 4bc5267 commit f67126d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/pattern_assembler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ var pattern_assembler = function () {
418418

419419
if (linkMatches) {
420420
for (var i = 0; i < linkMatches.length; i++) {
421-
expandedLink = patternlab.data.link[linkMatches[i].split('.')[1]];
421+
expandedLink = encodeURI(patternlab.data.link[linkMatches[i].split('.')[1]]);
422422
if (expandedLink) {
423423
expandedLink = expandedLink.replace('\\', '/');
424424
if (patternlab.config.debug) {

0 commit comments

Comments
 (0)