fix($animate): avoid accidentally matching substrings when resolving the presence of className tokens