fix isHidden regexp compatible win