Skip to content

Commit

Permalink
fix(docs): exclude final slash in the url
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Dec 3, 2024
1 parent 3946d06 commit 207a9c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/helpers/mql-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ mql.render(${output})`

const CLI = () => {
const url = createApiUrl({ url: input, ...props })
return `microlink '${url.replace('https://api.microlink.io?url=', '')}'`
return `microlink '${url.replace(
/https:\/\/api\.microlink\.io\/?\?url=/,
''
)}'`
}

Shell.language = 'bash'
Expand Down

0 comments on commit 207a9c7

Please sign in to comment.