andrewplummer/Sugar — pull request #380 by GlitchMr (2013-10-13 12:02:54+00:00)
Title: Escape dash in `Regexp.escape`.

This lets you write code like `RegExp("[" + RegExp.escape(something) + "]")` work, without having to worry about dashes working as ranges.