protect id & pass for a while
typo
fix regex for support newline for '\r\n' and '\n'