calabash/calabash-android — pull request #176 by bootstraponline (2012-12-24 19:55:31+00:00)
Title: Fix nil error

scan returns [] when not found so check for m.first instead of m.
There is always only one [] so use .first not .last

1.9.3-p194 :004 > ''.scan 'a'
=> []
1.9.3-p194 :003 > 'aaaaa'.scan 'a'
=> ["a", "a", "a", "a", "a"]