Skip to content

Commit 6f6f300

Browse files
chore: apply automated fixes
1 parent 39460fc commit 6f6f300

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

utils/markdown.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export function resolveMarkdownRelativeLinks(
2020
* RegExp is used to avoid replacing texts in markdown links and targets only `href` and `src` attributes
2121
* @example [link](./image.png) => [link](https://cdn.com/image.png)
2222
* @example [./src/file.ts](./src/file.ts) => [./src/file.ts](https://cdn.com/src/file.ts)
23-
*/
24-
const searchRegExp = new RegExp(`(?<before>[^[])(?<url>${path})`, "g") // [^[] matches any character except [
23+
*/
24+
const searchRegExp = new RegExp(`(?<before>[^[])(?<url>${path})`, "g"); // [^[] matches any character except [
2525
return match.replace(searchRegExp, (_, before, url) => {
26-
return `${before}${cdnBaseURL}/${url.replace(/^\.\//, "")}`
26+
return `${before}${cdnBaseURL}/${url.replace(/^\.\//, "")}`;
2727
});
2828
},
2929
);

0 commit comments

Comments
 (0)