Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update multi-links extension #16875

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion extensions/multi-links/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Multi Links Changelog

## [Initial Version] - 2024-11-05
## [1.0.1] - 2025-02-07

Fix parsing of URLs from some applications where it was not working properly.

## [Initial Version] - 2024-11-05

Initial Release of the Multi Links extension.
3 changes: 2 additions & 1 deletion extensions/multi-links/src/multi-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import extractUrls from "extract-urls";
export default async function main() {
try {
const selectedText = await getSelectedText();
const urls = extractUrls(selectedText);
const formattedSelectedText = selectedText.replace(/http/g, " http");
const urls = extractUrls(formattedSelectedText);
if (urls.length > 0) {
for (const url of urls) {
await open(url);
Expand Down
Loading