]> git.cworth.org Git - sup/commit
bugfix: index label parsing code incorrect
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 13 May 2009 20:07:14 +0000 (13:07 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 13 May 2009 20:07:14 +0000 (13:07 -0700)
commit4ea04212928446fb62c5fd5ecca9c18b0339edf9
treea4e681ef0c565ef69f22632e3b45a0cc115fe2c4
parenta3b23af3ea3cd0f703fc903db9b87c4bff1830a2
bugfix: index label parsing code incorrect

Apparently split(/\s+/) is significantly different from split (which is
equivalent to split(" ")) in at least one case:

>> " a b  c   ".split(/\s+/)
=> ["", "a", "b", "c"]
>> " a b  c   ".split
=> ["a", "b", "c"]

This patch refactors the majority of uses of split(/\s+/) to a String#symbolize
method, which is correct.
bin/sup-sync
bin/sup-sync-back
lib/sup/buffer.rb
lib/sup/index.rb
lib/sup/poll.rb
lib/sup/util.rb