Skip to content

Commit 207a9c7

Browse files
committed
fix(docs): exclude final slash in the url
1 parent 3946d06 commit 207a9c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/helpers/mql-code.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ mql.render(${output})`
9191

9292
const CLI = () => {
9393
const url = createApiUrl({ url: input, ...props })
94-
return `microlink '${url.replace('https://api.microlink.io?url=', '')}'`
94+
return `microlink '${url.replace(
95+
/https:\/\/api\.microlink\.io\/?\?url=/,
96+
''
97+
)}'`
9598
}
9699

97100
Shell.language = 'bash'

0 commit comments

Comments
 (0)