Skip to content

Commit

Permalink
tabutils: fix not being able to paste individually-copied tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
XPhyro committed Aug 21, 2024
1 parent d083c6b commit 4fe0be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/browser/tabutils/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function readFromClipboard(callback)
const urls = clipboardData.split("\n").map((line) => {
const splitLine = line.split(/(\s+)/);
const url = coalesceUrl(splitLine.at(-1)) || coalesceUrl(splitLine.at(0)) ||
coalesceUrl(line.replace(/^- \[.*\]\((.*)\)\s*$/, "$1"));
coalesceUrl(line.replace(/^(?:- )?\[.*\]\((.*)\)\s*$/, "$1"));
return url;
});

Expand Down
2 changes: 1 addition & 1 deletion src/js/browser/tabutils/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "TabUtils",
"version": "1.1.5",
"version": "1.1.6",
"description": "Copy and paste tabs",
"permissions": ["tabs", "clipboardWrite", "clipboardRead"],
"background": {
Expand Down

0 comments on commit 4fe0be9

Please sign in to comment.