bkabrda/logging — comment on commit 73d8dfd3b3c58e66eb6b375aafa1748df0fd5de4
File: test/layouts/test_yaml.rb line 58
By TwP:

A much simpler fix is to modify the regular expression in place

```ruby
assert_match %r/---\s?\ntimestamp: #@date_fmt\n/, @layout.format(event)
```

The only difference in all these tests is the trailing whitespace after the YAML marker. You can use the ```assert_match``` test and look for an optional trailing whitespace - no need to detect the ruby version. This would be a much simpler solution.