From 08388fea5a1a28870c866d2f19bdfc0125f155f1 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 5 Oct 2010 00:16:55 -0400 Subject: [PATCH] testing issue 584 --- test/test_regexps.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) 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