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

Fix multibyte text problem in blockquotes #56

Merged
merged 1 commit into from Mar 16, 2016
Merged

Fix multibyte text problem in blockquotes #56

merged 1 commit into from Mar 16, 2016

Conversation

ghost
Copy link

@ghost ghost commented Mar 16, 2016

Since converting the string functions to their mb_ equivalents, PREG_OFFSET_CAPTURE can now be "incorrect", the mb_ functions give the position of characters in the string, wheras PREG_OFFSET_CAPTURE gives the byte offset. This meant that for some strings, mb_substr in convertBlockquotes was truncating the strings in the wrong place.

@mtibben
Copy link
Owner

mtibben commented Mar 16, 2016

👍 thanks @cameron1729

mtibben added a commit that referenced this pull request Mar 16, 2016
Fix multibyte text problem in blockquotes
@mtibben mtibben merged commit 6ade23e into mtibben:master Mar 16, 2016
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.

None yet

2 participants