d920bb4615
It won't match a char because it's a newline. While sticking "m" on the end of the regex would work, there is zero reason we can't hardcode the length, since the string is fixed. irb(main):001:0> "\nhi" =~ /.hi/ => nil irb(main):002:0> "\nhi" =~ /.hi/m => 0 irb(main):003:0>