lib/usher/splitter.rb in joshbuddy-usher-0.4.11 vs lib/usher/splitter.rb in joshbuddy-usher-0.5.1
- old
+ new
@@ -2,10 +2,10 @@
class Usher
class Splitter
def self.for_delimiters(router, valid_regex)
- SplitterInstance.new(Regexp.new("[#{router.delimiters.collect{|d| Regexp.quote(d)}}]|[^#{router.delimiters.collect{|d| Regexp.quote(d)}}]+"))
+ SplitterInstance.new(Regexp.new("[#{router.delimiters.collect{|d| Regexp.quote(d)}.join}]|[^#{router.delimiters.collect{|d| Regexp.quote(d)}.join}]+"))
end
class SplitterInstance
def initialize(url_split_regex)
\ No newline at end of file