[fix] allow brackets in regexp