Skip to content

Commit

Permalink
Fix pasting tags from clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Dec 11, 2024
1 parent 63e6aec commit c3d876b
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 42 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "5.6.64",
"version": "5.6.65",
"description": "All-in-one bookmark manager",
"author": "Rustem Mussabekov",
"license": "MIT",
Expand Down
8 changes: 5 additions & 3 deletions src/data/reducers/bookmarks/draft.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ export default function(state, action) {switch (action.type) {
//fix tags
if (key=='tags')
val = _.uniq(
val.map(tag=>
tag.trim().replace(/^#|^"#|^"|"$/gm, '')
)
val
.flatMap(tag=>tag.split(','))
.map(tag=>
tag.trim().replace(/^#|^"#|^"|"$/gm, '')
)
)

//update draft
Expand Down
95 changes: 57 additions & 38 deletions src/target/extension/background/highlights/highlight.js

Large diffs are not rendered by default.

0 comments on commit c3d876b

Please sign in to comment.