diff --git a/test/test_regexps.coffee b/test/test_regexps.coffee index e78e89de..5c11bd7b 100644 --- a/test/test_regexps.coffee +++ b/test/test_regexps.coffee @@ -34,3 +34,11 @@ eq '\\\\#{}\\\\\\\"', /// \\ \" ///.source eq /// /// + '', '/(?:)/' + + +# Issue #584. +regex = /[/]/ +s1 = "Hello there" +s2 = "Hello / there" +ok not regex.test(s1) +ok regex.test(s2) \ No newline at end of file