From a4eb9bfca58c32f8b6e5f9113d94991240269f35 Mon Sep 17 00:00:00 2001 From: ueno Date: Mon, 5 Jan 2004 06:37:23 +0000 Subject: [PATCH] Suppress warning: "regex literal in condition" (for Ruby 1.8). --- cvs2cl/fmtlog.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.10.4