Skip to content

Commit

Permalink
fix(clayui.com): fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Dec 8, 2023
1 parent b4e9117 commit 0774484
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
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 0774484

Please sign in to comment.