isNaN instead of regexp

use isNaN to decide the deferred callback emit.