what if patterns include `\n`? maybe also add it to splitters?