fix assertion macro
support '.' meta char