Finally managed to find the bug that made regex matches fail

This took me longer to find than I'd care to admit. Regex is matched against the wrong variable (against itself actually), resulting in most regexes to fail. At first I skipped the regex match but that would result in too much schemas to be matched. 

This one's for Mongo queries inside CodeCombat achievements :)