Skip to content

Commit

Permalink
fix(markdown-utils): add check for falsy values (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin authored May 4, 2023
1 parent dc13b0e commit 856df22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/markdown-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getTrailingSlashWithPermalink = (permalink) =>
permalink.endsWith("/") ? permalink : `${permalink}/`

const recursiveUnescape = (val) => {
if (val === "") return val
if (!val) return val
if (Array.isArray(val)) {
return val.map(recursiveUnescape)
}
Expand Down

0 comments on commit 856df22

Please sign in to comment.