Suppress warning: "regex literal in condition" (for Ruby 1.8).
authorueno <ueno>
Mon, 5 Jan 2004 06:37:23 +0000 (06:37 +0000)
committerueno <ueno>
Mon, 5 Jan 2004 06:37:23 +0000 (06:37 +0000)
cvs2cl/fmtlog.rb

index 923953e..3ae1bb7 100644 (file)
@@ -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