mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
ed1d6c98b3
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. |
||
---|---|---|
.. | ||
ajax.js | ||
bind.js | ||
bound-one-way.js | ||
caja-sanitizers.js | ||
ctrl-or-cmd.js | ||
date-formatting.js | ||
document-title.js | ||
ed-image-manager.js | ||
editor-shortcuts.js | ||
ghost-paths.js | ||
isFinite.js | ||
isNumber.js | ||
link-component.js | ||
random-password.js | ||
text-field.js | ||
titleize.js | ||
validator-extensions.js | ||
window-proxy.js | ||
word-count.js |