lib/sdl4r/parser.rb in sdl4r-0.9.4 vs lib/sdl4r/parser.rb in sdl4r-0.9.5

- old
+ new

@@ -1,5 +1,8 @@ +#!/usr/bin/env ruby -w +# encoding: UTF-8 + #-- # Simple Declarative Language (SDL) for Ruby # Copyright 2005 Ikayzo, inc. # # This program is free software. You can distribute or modify it under the @@ -635,14 +638,9 @@ milliseconds = ((seconds - seconds.to_i) * 1000).to_i seconds = seconds.to_i return SDLTimeSpan.new(days, hours, minutes, seconds, milliseconds) - - raise ArgumentError, - "Malformed time span <#{literal}>. Time spans must use the format " + - "(d:)hh:mm:ss(.xxx) Note: if the day component is " + - "included it must be suffixed with lower case \"d\"" end # Close the reader and throw a SdlParseError using the format # Was expecting X but got Y. #