Skip to content

Commit

Permalink
3.0.2
Browse files Browse the repository at this point in the history
- Fixed bug whereby base64-encoded images padded with '=' at the end
would not render correctly, as the padding would not be removed.
  • Loading branch information
jglev committed Apr 27, 2022
1 parent adc30cb commit 68f83e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export default class PastetoIndentationPlugin extends Plugin {
) {
const images = [
...clipboardContents.matchAll(
/data:image\/(?<extension>.*?);base64,\s*(?<data>.*)\b/g
/data:image\/(?<extension>.*?);base64,\s*(?<data>[A-Za-z0-9\+\/]*)\b={0,2}/g
),
];

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-paste-to-current-indentation",
"name": "Paste to Current Indentation",
"version": "3.0.1",
"version": "3.0.2",
"minAppVersion": "0.14.6",
"description": "This plugin allows pasting and marking text as block-quotes at any level of indentation.",
"author": "Jacob Levernier",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-paste-to-current-indentation",
"version": "3.0.1",
"version": "3.0.2",
"description": "This plugin allows pasting and marking text as block-quotes at any level of indentation.",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"2.2.0": "0.14.2",
"2.2.1": "0.14.2",
"3.0.0": "0.14.6",
"3.0.1": "0.14.6"
"3.0.1": "0.14.6",
"3.0.2": "0.14.6"
}

0 comments on commit 68f83e3

Please sign in to comment.