Skip to content

Commit

Permalink
Merge pull request #5737 from matuzalemsteles/fix-clayuicom
Browse files Browse the repository at this point in the history
fix(clayui.com): fix build error
  • Loading branch information
matuzalemsteles authored Dec 12, 2023
2 parents b4e9117 + 0774484 commit 5266f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clayui.com/plugins/gatsby-remark-use-clipboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = ({markdownAST}) => {

const language = node.meta ? node.lang + node.meta : node.lang;

const {expanded} = parseOptions(language.match(/(?<=\{).+?(?=\})/g));
const {expanded} = parseOptions(language?.match(/(?<=\{).+?(?=\})/g));

const expandedClass = expanded ? ' expanded' : '';
const hideClass = expanded ? ' hide' : '';
Expand Down

0 comments on commit 5266f5e

Please sign in to comment.