Skip to content

Commit 7c830ae

Browse files
committed
more flexible regex / fix linux (WSL)
1 parent eebb293 commit 7c830ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docsBrowser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export namespace DocsBrowser {
111111
function processLink(ms: MarkedString): string | MarkdownString {
112112
function transform(s: string): string {
113113
return s.replace(
114-
/\[(.+)\]\((file:.+\/doc\/(?:html\/libraries\/)?([^\/]+)\/(src\/)?(.+\.html#?.*))\)/gi,
114+
/\[(.+)\]\((file:.+\/doc\/(?:.*html\/libraries\/)?([^\/]+)\/(src\/)?(.+\.html#?.*))\)/gi,
115115
(all, title, localPath, packageName, maybeSrcDir, fileAndAnchor) => {
116116
if (!maybeSrcDir) {
117117
maybeSrcDir = '';

0 commit comments

Comments
 (0)