Fix boolean attributes RegExp.

ref: #1166