Skip to content

Commit

Permalink
Custom Class: Fixed TypeError when mapper is undefined (#2167)
Browse files Browse the repository at this point in the history
  • Loading branch information
harigopal authored and RunDevelopment committed Jan 10, 2020
1 parent c40d96c commit 543f04d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/custom-class/prism-custom-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
}

env.classes = env.classes.map(function (c) {
return prefixString + mapper ? mapper(c, env.language) : c;
return prefixString + (mapper ? mapper(c, env.language) : c);
});
});

Expand Down
2 changes: 1 addition & 1 deletion plugins/custom-class/prism-custom-class.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 543f04d

Please sign in to comment.