From: ueno Date: Mon, 5 Jan 2004 06:37:23 +0000 (+0000) Subject: Suppress warning: "regex literal in condition" (for Ruby 1.8). X-Git-Tag: lsdb-0_11~3 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a4eb9bfca58c32f8b6e5f9113d94991240269f35;p=elisp%2Flsdb.git Suppress warning: "regex literal in condition" (for Ruby 1.8). --- diff --git a/cvs2cl/fmtlog.rb b/cvs2cl/fmtlog.rb index 923953e..3ae1bb7 100644 --- a/cvs2cl/fmtlog.rb +++ b/cvs2cl/fmtlog.rb @@ -1,4 +1,4 @@ -if /^\t(\* ([^:]+): )\* ([^: ]+)/ or /^\t\* [^:]+(:) \(/ or - /^\d{4}-\d{2}-\d{2}( \d{2}:\d{2})/ +if $_ =~ /^\t(\* ([^:]+): )\* ([^: ]+)/ or $_ =~ /^\t\* [^:]+(:) \(/ or + $_ =~ /^\d{4}-\d{2}-\d{2}( \d{2}:\d{2})/ $_.slice!($~.begin(1) .. $~.end(1) - 1) end