Regex checks ember object