You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was causing issues when multibyte characters would be split into
many words and potentially be cut within character boundaries.
Originally reported at BookStackApp/BookStack#3170
Thanks for reporting @johnroyer. Could confirm this on my setup.
I maintain the diff handling as a separate project.
I made some updates to handle the provided scenario: ssddanbrown/HtmlDiff@4894499...v1.0.2
Needed to add manual multi-byte handling since using PHP multi-byte functions would end up exponentially slower.
I've updated the version of the library BookStack uses so this should be fixed in the next patch release. Will therefore close this off.
Describe the Bug
Diff tool can not work correctly if add/delete space in general character and multibytes characters.
Steps to Reproduce
test測試
test 測試
Revision
of page details.Changes
on the latest revision.Expected Behaviour
Diff tool should show spaces only.
Screenshots or Additional Context
Error WILL occur if and if the add / delete space between general character and multibyte character.
The error will NOT occur on this conditions:
unittest
tounit test
.你好
to你 好
.Exact BookStack Version
21.12
PHP Version
7.4.27
Hosting Environment
The text was updated successfully, but these errors were encountered: