]> git.eshelyaron.com Git - emacs.git/commit
Make js-jsx-regexps case-sensitive
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sun, 22 Sep 2019 18:57:57 +0000 (11:57 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sun, 22 Sep 2019 19:03:03 +0000 (12:03 -0700)
commitee89c1cdb5a3bb7b69b763a59a20b34508ddf3ae
tree1c05bfdb8d00861bb66bff1526b304e12eacccc5
parent2f600e97e7ca43965f55f019759582d93d8bca73
Make js-jsx-regexps case-sensitive

The regexp in this list used a capitalized “React” because it actually
should be capitalized like that.  Otherwise, the following code would
produce a false positive match: import Thing from './react/Thing'

* lisp/progmodes/js.el (js-jsx-regexps): Update docstring.
(js-jsx--detect-and-enable): Match case-sensitively when determining
whether JSX should be enabled.
lisp/progmodes/js.el