TS-3120: fix map rule ranking for regex mappings