There's nothing wrong with those lines individually, Wims was pointing out that, separated across multiple lines, "alias\nalias_test" would match incorrectly. However this is not the case. The test cases you gave match properly.