On 02.11.2016 00:30, James Yang wrote:
var re = /some value/

 str.match(re)


Can't reproduce with

js-mode of GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-10-11