Fix emoji transform to Matrix
Fix emoji transform to Matrix
Fix #2641 (closed)
Follow-up from !2077 (merged) which throws an error when we try to deploy in production because emojify is not available.
We ignore the public/repo/
directory in our build-scripts which holds emojify
so it's not available on disk. For the frontend, it's already bundled in by webpack.
2020-12-01T00:52:53.583Z - info: Starting server/web.js
Dec 01 00:52:54 webapp-04 ns[6501]: 2020-12-01T00:52:54.299Z - error: ----------------------------------------------------------------
Dec 01 00:52:54 webapp-04 ns[6501]: 2020-12-01T00:52:54.300Z - error: -- A VeryBadThing has happened.
Dec 01 00:52:54 webapp-04 ns[6501]: 2020-12-01T00:52:54.300Z - error: ----------------------------------------------------------------
Dec 01 00:52:54 webapp-04 ns[6501]: 2020-12-01T00:52:54.300Z - error: Uncaught exceptionError: Cannot find module '../../../public/repo/emojify/emojify' message=Cannot find module '../../../pub
Dec 01 00:52:54 webapp-04 ns[6501]: 2020-12-01T00:52:54.300Z - error: Error: Cannot find module '../../../public/repo/emojify/emojify'
Dev notes
-
options.ignore_emoticons = true
:/(:([a-z0-9A-Z_-]+):)|(:\+1:)|(:\-1:)/gi
/(:([a-z0-9A-Z_-]+):)|(:-?\))|([:;]-?d)|(;-?\))|(:-?\()|(:['’]-?\(|:'\()|(:-?\/)|(:-?s)|(:-?p)|(;-?p)|(:-?o)|(>:-?\()|(:-?\*)|(:-?\|)|(:-x)|(<3|<3)|(<\/3|</3)|(:\+1:)|(:\-1:)/gi
Edited by Eric Eastwood