Skip to content

Commit 853e532

Browse files
committed
Fix unused variable warning in UsePropertyReplacement
1 parent d715bcc commit 853e532

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/hooks/UsePropertyReplacement/UsePropertyReplacement.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@ function preProcessMarkdownLinks(content, properties) {
3131
const urlRegex = /\]\s*\(([^)]*\{\{[^}]*\}\}[^)]*)\)/g;
3232

3333
return content.replace(urlRegex, (match, url) => {
34-
// Get the part before the opening parenthesis
35-
const beforeParen = match.substring(0, match.indexOf("("));
3634
// Transform the URL
3735
const replacedContent = replacePropertyTags(url, properties, false, true);
38-
3936
// Return the unchanged part + transformed URL in parentheses
4037
return `](${replacedContent})`;
4138
});

0 commit comments

Comments
 (0)