Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
Update hacky meta regex: Allow apostrophe in content
Browse files Browse the repository at this point in the history
  • Loading branch information
milesrichardson authored and mildbyte committed Jul 2, 2020
1 parent 812281c commit f1bcae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/compile/compileContentTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const transform = (code) => {
// Note: This will not match nested JSON objects
// There is a more complex regex which works 100% here: https://stackoverflow.com/a/60556735/3793499
// ...but unfortunately it does not work in JS, which does not support lookbehinds.
const exportRegex = /export const meta = \{\s?[šA-za-z0-9:"\s\.-_\,\-\+]+}\;?/gm;
const exportRegex = /export const meta = \{\s?[šA-za-z0-9:"\s\.-_\,\-\+\']+}\;?/gm;

let exportMatch = exportRegex.exec(code);

Expand Down

0 comments on commit f1bcae9

Please sign in to comment.