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

replace all occurrences of the same CID reference #24

Merged
merged 1 commit into from
Apr 16, 2017

Conversation

kieran
Copy link
Contributor

@kieran kieran commented Apr 6, 2017

This fixes the incorrect behaviour of only replacing the first instance of a CID reference by using a regular expression with a global flag.

Example: referencing the same inline-attachment in multiple places within the same email (often used for responsive HTML emails)

This fixes the incorrect behaviour of only replacing the _first_ instance of a CID reference by using a regular expression with a global flag.

Example: referencing the same inline-attachment in multiple places within the same email (often used for responsive HTML emails)
@jerbob92
Copy link

Ehh... Isn't this the same issue as with #23?
@ian-kent can you please take a look at this?

@kieran
Copy link
Contributor Author

kieran commented Apr 12, 2017

@jerbob92 you're correct, I didn't notice that.

Either PR will work, would love to get one of them merged!

@ian-kent
Copy link
Member

@jerbob92 I'll have a look asap, should have some time this weekend!

@ian-kent ian-kent merged commit 8d31ba0 into mailhog:master Apr 16, 2017
@ian-kent
Copy link
Member

thanks @kieran and @jerbob92

I'll go with this one, I kinda like regexes 😄

@ian-kent ian-kent mentioned this pull request Apr 16, 2017
@kieran kieran deleted the patch-1 branch April 17, 2017 02:39
@kieran
Copy link
Contributor Author

kieran commented Apr 17, 2017

Thanks!

@kieran
Copy link
Contributor Author

kieran commented Apr 19, 2017

@ian-kent I don't think your 1.0.0 release was built using HEAD from this repo - the old UI code is still shipping with that release (checked binary output).

@kieran
Copy link
Contributor Author

kieran commented Oct 31, 2017

@ian-kent any chance of a re-release of this? doesn't seem to be in the latest package

ayumi- pushed a commit to ayumi-/MailHog-UI that referenced this pull request Dec 8, 2018
replace all occurrences of the same CID reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants