0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core
Kevin Ansfield 9eef2616e4 Drop XRegExp dependency
closes #6102
- removes the `xregexp` dependency
- pulls in the non-alphnumeric unicode list directly from the XRegExp library to ensure the word count helper still takes into account unicode strings

The XRegExp dependency was breaking as new browsers add more es6 support as evidenced in #6102. Upgrading to version 3.1.0 fixed the Chrome "experimental JS" issue but was still broken in Safari Technology Preview.

We only use one feature of `XRegExp` in a single place for a relatively non-critical feature: calculating the word count. As such I figured it may be better to drop the 63KB minified dependency and simply copy the result of the compiled regex directly until such time as XRegExp has native support in our supported browsers.
2016-03-30 19:45:20 +01:00
..
client Drop XRegExp dependency 2016-03-30 19:45:20 +01:00
server Merge pull request #6631 from dbalders/draft-slug 2016-03-29 15:35:08 +01:00
shared ensure null query options don't break ghost-url 2016-02-29 00:25:38 -06:00
test Merge pull request #6650 from jaswilli/upload-test 2016-03-29 14:23:26 +01:00
index.js