0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/core/client
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
..
app Drop XRegExp dependency 2016-03-30 19:45:20 +01:00
config various test 🐛 fixes 2016-02-23 23:27:57 -06:00
lib Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
public/assets Move user/cover image files used in admin team area into the client folder 2016-01-14 16:26:48 +00:00
tests Remove Nav Item Placeholder and Set as Base Url Value 2016-03-22 07:11:20 -07:00
.ember-cli grunt init, dev 2015-03-11 12:37:41 -06:00
.gitignore Convert Sass to Myth 2015-05-22 19:05:09 +01:00
.jscsrc Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
.jshintrc Remove $ from jshint's predef, always use Ember's $ 2015-12-01 20:52:25 +00:00
.watchmanconfig deps: ember-cli@1.13.13 2015-11-30 11:21:39 -06:00
bower.json Drop XRegExp dependency 2016-03-30 19:45:20 +01:00
ember-cli-build.js Drop XRegExp dependency 2016-03-30 19:45:20 +01:00
package.json deps: ember-sinon@0.5.0 2016-03-29 13:03:59 +01:00
testem.js deps: ember-cli@2.4.0 2016-03-01 12:49:28 +00:00