selector type detection changed to regexp to support single letter identifers