DEV Community

Discussion on: Writing a Node.js module in TypeScript

Collapse
 
phipsy7 profile image
Philippe Rüesch

There's an error in your regex string. It should be
var EMOJI_SHORTCODES = /:[a-zA-Z1-9_]+:/g;
You've forgotten the + at the end of the []

Collapse
 
dkundel profile image
Dominik Kundel

Ah it was dropped during the import from the other blog. Thank you!