Skip to content

Commit ca9be8b

Browse files
committed
docs: update examples
1 parent 39460fc commit ca9be8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/markdown.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ 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+
* @example ./src/file.ts => https://cdn.com/src/file.ts
2324
*/
2425
const searchRegExp = new RegExp(`(?<before>[^[])(?<url>${path})`, "g") // [^[] matches any character except [
2526
return match.replace(searchRegExp, (_, before, url) => {

0 commit comments

Comments
 (0)