Skip to content

Commit

Permalink
fix: backticks not being removed for code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaybadgujar102 committed Nov 12, 2024
1 parent fc81050 commit c1d77ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ const GoalTitle = ({ goal, isImpossible }: GoalTitleProps) => {

const renderTextPart = (part: string) => {
const cleanPart = removeBackTicks(part);
console.log(cleanPart);
const match = cleanPart.match(/zURL-(\d+)/);

if (!match) {
return <span key={`${id}-text-${part}`}>{part}</span>;
return <span key={`${id}-text-${part}`}>{cleanPart}</span>;
}

const urlIndex = parseInt(match[1], 10);
Expand Down

0 comments on commit c1d77ae

Please sign in to comment.