bats 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/bats.rb +1 -1
  2. metadata +1 -1
data/lib/bats.rb CHANGED
@@ -45,7 +45,7 @@ class Bats
45
45
  matches = matches[ 1, matches.length - 1 ]
46
46
  matches.map! do | i |
47
47
  i = ( i ) ? i : ''
48
- i = i.to_i if i =~ /^[\d]+$/
48
+ i = i.to_i if i =~ /^\d+$/
49
49
  i
50
50
  end
51
51
  route = b
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hans Oksendahl