From 22c005569b8cd00ea6895dcc7b621b80d9f15068 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 19 Jan 2004 09:19:31 +0000 Subject: * variable.c (rb_set_class_path): do not set path if * lib/cgi.rb (CGI::QueryExtension): give extended string, not a delegater object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regex.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'regex.c') diff --git a/regex.c b/regex.c index 7db560bb98..ff41eb8e2a 100644 --- a/regex.c +++ b/regex.c @@ -2181,6 +2181,7 @@ re_compile_pattern(pattern, size, bufp) unfetch_interval: /* If an invalid interval, match the characters as literals. */ + re_warning("regexp has invalid interval"); p = beg_interval; beg_interval = 0; @@ -2363,6 +2364,8 @@ re_compile_pattern(pattern, size, bufp) default: if (c == ']') re_warning("regexp has `]' without escape"); + else if (c == '}') + re_warning("regexp has `}' without escape"); normal_char: /* Expects the character in `c'. */ had_mbchar = 0; if (ismbchar(c)) { -- cgit v1.2.3