[ruby-core:121760] [Ruby Bug#21291] possible bug with /m regexp and $ based on input