[magic] Use '~=' instead of '!='.