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

Fixed 'Image path of exported image is wrong' #3392

Closed
wants to merge 2 commits into from

Conversation

AlfredoGJ
Copy link

Description

This PR fixes the bug #2785 Image path of exported image is wrong

When the function that replaces the image link in the note was looking to replace it, it did not worked. This was because the regex that is supposed to match the image link was incorrect.

The replace function was searching for something like:

"![:storage/noteKey/image.jpg](imageName})"

when in the note the images links have the format:

"![imageName](:storage/noteKey/image.jpg)"

The tests also were expecting something wrong, so they were changed.

Issue fixed

#2785 Image path of exported image is wrong

Type of changes

  • 🔘 Bug fix (Change that fixed an issue)

  • ⚪ Breaking change (Change that can cause existing functionality to change)

  • ⚪ Improvement (Change that improves the code. Maybe performance or development improvement)

  • ⚪ Feature (Change that adds new functionality)

  • ⚪ Documentation change (Change that modifies documentation. Maybe typo fixes)

Checklist:

  • 🔘 My code follows the project code style

  • 🔘 I have written test for my code and it has been tested ()

  • 🔘 All existing tests have been passed

  • ⚪ I have attached a screenshot/video to visualize my change if possible

@Flexo013 Flexo013 added the awaiting review ❇️ Pull request is awaiting a review. label Dec 11, 2019
@Rokt33r Rokt33r self-requested a review January 3, 2020 21:02
@AlfredoGJ AlfredoGJ changed the title Fixed issue #2785 Fixed 'Image path of exported image is wrong' Jan 6, 2020
@ZeroX-DG
Copy link
Member

ZeroX-DG commented Apr 4, 2020

I think this one is a duplicate to this one: #2897
But thank you for supporting Boostnote 👍

@ZeroX-DG ZeroX-DG closed this Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review ❇️ Pull request is awaiting a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants