make regex more relaxed

This regex will fail if html has no space after type, seems un-necessary
as for example this would fail `<input type="checkbox">`