lib/core/facets/string/divide.rb in facets-2.4.5 vs lib/core/facets/string/divide.rb in facets-2.5.0

- old
+ new

@@ -8,10 +8,10 @@ # # _produces_ # # ["<p>This", "<b>is", "</b>a test.", "</p>"] # - # CREDIT: Trans + # CREDIT: Trans def divide( re ) re2 = /#{re}.*?(?=#{re}|\Z)/ scan(re2) #{re}(?=#{re})/) end