[Mono-bugs] [Bug 56761][Nor] Changed - Regex doesnt like A{,2} for repitition bounds
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 9 Apr 2004 15:16:58 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by dave-gnome-bugs@earth.li.
http://bugzilla.ximian.com/show_bug.cgi?id=56761
--- shadow/56761 2004-04-09 15:15:51.000000000 -0400
+++ shadow/56761.tmp.21323 2004-04-09 15:16:58.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 56761
Product: Mono: Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: System
AssignedTo: mono-bugs@ximian.com
ReportedBy: dave-gnome-bugs@earth.li
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -57,6 +57,21 @@
None of those nasty exception things.
------- Additional Comments From dave-gnome-bugs@earth.li 2004-04-09 15:15 -------
Created an attachment (id=7291)
Patch to fix this behaviour
+
+------- Additional Comments From dave-gnome-bugs@earth.li 2004-04-09 15:16 -------
+Also, here is a simple test case. Is this sufficient, or do we want
+more than this? I can't do anything more tonight though.
+
+
+ [Test]
+ public void SingleBounds () {
+ Regex reg = new Regex("^a{,2}$");
+ Assertion.AssertEquals("Bounds0", true, reg.IsMatch(""));
+ Assertion.AssertEquals("Bounds1", true, reg.IsMatch("a"));
+ Assertion.AssertEquals("Bounds2", true, reg.IsMatch("aa"));
+ Assertion.AssertEquals("Bounds3", false, reg.IsMatch("aaa"));
+ }
+