sebleier/plate — comment on commit c2923aabad82d3f851c0d715c11f24b994022fe1
File: lib/utils.js line 86
By chrisdickinson:

may need `var` in front of these, and as a "wonky javascript note", you'll want to "reset" these regexen after each use (`re_formatchars.lastIndex = 0`) since they are `/g`.