diff options
Diffstat (limited to 'lib/scanf.rb')
-rw-r--r-- | lib/scanf.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/scanf.rb b/lib/scanf.rb index d12dc12f55..6ba6847616 100644 --- a/lib/scanf.rb +++ b/lib/scanf.rb @@ -471,8 +471,7 @@ module Scanf end def width - w = @spec_string[/%\*?(\d+)/, 1] - w && w.to_i + @spec_string[/%\*?(\d+)/, 1]&.to_i end def mid_match? |