Fix comparison for regexp deepEqual