Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Characters after a link reversed. #13

Closed
bjhijmans opened this issue Jan 13, 2020 · 2 comments
Closed

Characters after a link reversed. #13

bjhijmans opened this issue Jan 13, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@bjhijmans
Copy link

In the following example:
[image src='<image>' caption='source: ( https://www.example.com/test). ']

The resulting caption for the image is:
source: (https://www.example.com/test.)
The . and ) at the end are reversed.

This only happens with some links, specifically the /test in the example was necessary to reproduce the error. I think the closing paren that gets chopped off in processAutoLinks() needs to be prepended to $leftovers instead of appended. But I'm unsure if that is correct in all cases.

@colinodell colinodell self-assigned this Jan 13, 2020
@colinodell colinodell added the bug Something isn't working label Jan 13, 2020
@colinodell
Copy link
Member

I think the closing paren that gets chopped off in processAutoLinks() needs to be prepended to $leftovers instead of appended.

Yep, that does seem to be the issue. Thanks for the detailed bug report! I'll get this released in v1.0.1 in a few minutes :)

@colinodell
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants