[Mono-bugs] [Bug 31334][Nor] New - Regex Parser doesn't throw exception when patterns ends with '\'
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
27 Sep 2002 07:02:44 -0000
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 ndrochak@gol.com.
http://bugzilla.ximian.com/show_bug.cgi?id=31334
--- shadow/31334 Fri Sep 27 03:02:44 2002
+++ shadow/31334.tmp.30733 Fri Sep 27 03:02:44 2002
@@ -0,0 +1,55 @@
+Bug#: 31334
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 7.2
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ndrochak@gol.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Regex Parser doesn't throw exception when patterns ends with '\'
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+The regex constructor should throw an exception on this pattern, but
+doesn't. See sample.
+
+Steps to reproduce the problem:
+
+using System;
+using System.Text.RegularExpressions;
+
+class Class1
+{
+ static int Main(string[] args)
+ {
+ try {
+ Regex re = new Regex (@"a\", RegexOptions.None);
+ }
+ catch (Exception) {
+ return 0;
+ }
+ return 1;
+ }
+}
+Actual Results:
+On MS.NET it returns 0. On mono on linux compiled with csc it returns 1.
+
+Expected Results:
+
+0 on both/all.
+
+How often does this happen?
+
+Always.
+
+Additional Information: