As the regex is configured at the moment, it is not possible to have line breaks in the code that is to be asserted. This could be fixed either by adding a separate method for doing asserts on code with line breaks (if todays behavior is needed), or adapting the regex to accept line breaks.
Is this something that could be fixed?