Title: [Bug Report]: diff tool error while processing space between general and multibytes characters · Issue #3170 · BookStackApp/BookStack · GitHub
Open Graph Title: [Bug Report]: diff tool error while processing space between general and multibytes characters · Issue #3170 · BookStackApp/BookStack
X Title: [Bug Report]: diff tool error while processing space between general and multibytes characters · Issue #3170 · BookStackApp/BookStack
Description: Describe the Bug Diff tool can not work correctly if add/delete space in general character and multibytes characters. Steps to Reproduce Create a page copy and paste this string: test測試 Save page. (revision 1) Edit page Add a space betwe...
Open Graph Description: Describe the Bug Diff tool can not work correctly if add/delete space in general character and multibytes characters. Steps to Reproduce Create a page copy and paste this string: test測試 Save page. ...
X Description: Describe the Bug Diff tool can not work correctly if add/delete space in general character and multibytes characters. Steps to Reproduce Create a page copy and paste this string: test測試 Save page. ...
Opengraph URL: https://github.com/BookStackApp/BookStack/issues/3170
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug Report]: diff tool error while processing space between general and multibytes characters","articleBody":"### Describe the Bug\n\nDiff tool can not work correctly if add/delete space in general character and multibytes characters.\r\n\r\n\r\n\r\n\n\n### Steps to Reproduce\n\n1. Create a page\r\n2. copy and paste this string: `test測試`\r\n3. Save page. (revision 1)\r\n4. Edit page\r\n5. Add a space between the words. New string will be: `test 測試`\r\n6. Save page. (revision 2)\r\n7. Click `Revision` of page details.\r\n8. Click `Changes` on the latest revision.\r\n9. Diff tool show some un-expect digits: \r\n \n\n### Expected Behaviour\n\nDiff tool should show spaces only.\n\n### Screenshots or Additional Context\n\nError WILL occur if and if the add / delete space between general character and multibyte character.\r\n\r\n----\r\n\r\nThe error will NOT occur on this conditions:\r\n\r\n- New space between general characters. Example: `unittest` to `unit test`.\r\n- New space between multibyte characters. Example: `你好` to `你 好`.\r\n\r\n\n\n### Exact BookStack Version\n\n21.12\n\n### PHP Version\n\n7.4.27\n\n### Hosting Environment\n\n- Ubuntu 20.04.3 LTS\r\n- Nginx 1.18.0 (reverse proxy)\r\n- PHP-fpm 7.4.27","author":{"url":"https://github.com/johnroyer","@type":"Person","name":"johnroyer"},"datePublished":"2022-01-17T08:49:28Z","url":"https://github.com/BookStackApp/BookStack/issues/3170"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5294e4ca-97c0-0ba0-6a42-f93ac003fb3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 988C:1D3EA:4182F:58550:6AFD8F58 |
| html-safe-nonce | 3b8b36f07dde448c1e052d4f66abcd6571cb5c13227f557c5db27167920078ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODhDOjFEM0VBOjQxODJGOjU4NTUwOjZBRkQ4RjU4IiwidmlzaXRvcl9pZCI6IjE1MTQ3NTQ5OTkwOTgxMTc5NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0b15be76b8e278517c58a88b8a483de43cdcc224751c53a3db2532e26ce25bfc |
| hovercard-subject-tag | issue:1105544092 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/BookStackApp/BookStack/3170/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c846797abe62ece0ea79a3154593a91d7d942c5ff194c9a23116c8e9a322f3f1/BookStackApp/BookStack/issues/3170 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c846797abe62ece0ea79a3154593a91d7d942c5ff194c9a23116c8e9a322f3f1/BookStackApp/BookStack/issues/3170 |
| og:image:alt | Describe the Bug Diff tool can not work correctly if add/delete space in general character and multibytes characters. Steps to Reproduce Create a page copy and paste this string: test測試 Save page. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnroyer |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/BookStackApp/BookStack git https://github.com/BookStackApp/BookStack.git |
| octolytics-dimension-user_id | 20912696 |
| octolytics-dimension-user_login | BookStackApp |
| octolytics-dimension-repository_id | 41589337 |
| octolytics-dimension-repository_nwo | BookStackApp/BookStack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 41589337 |
| octolytics-dimension-repository_network_root_nwo | BookStackApp/BookStack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width