berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

Issue matching '\n' #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ruby.exe svn 149
(Code extract based on ERB.rb)

test = "\n"
matchpos = (test =~ /(.*?)(<%%|<%=|<%#|<%|\n|\z)/)

puts matchpos   # <- 0
p $&        # <- get "", should be "\n"
puts $&.size    # <- get 0, should be 1

matchpos = (test =~ /(\n)/)

puts matchpos   # <- 0
p $&            # <- get nil, should be "\n"

Original issue reported on code.google.com by djl.rif...@googlemail.com on 25 Oct 2007 at 12:28

GoogleCodeExporter commented 9 years ago
Fixed in r159.

Original comment by sason...@gmail.com on 1 Nov 2007 at 6:41