为什么 isvalid("integer","1,5") = YES? [英] Why isvalid("integer","1,5") = YES?

查看:21
本文介绍了为什么 isvalid("integer","1,5") = YES?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么#isValid("integer","1,5")# 输出YES?我希望它像 #isValid("integer","1.5")# 那样输出 NO.

Why does #isValid("integer","1,5")# output YES? I expected it to output NO like #isValid("integer","1.5")# does.

我将使用 <CFIF isvalid("integer","1,5") AND isnumeric("1,5")> ...

推荐答案

Adobe 意识到了这一点,但是...

Adobe is aware of this, but...

状态:关闭

状态:撤回

原因:按照设计

https://bugbase.adobe.com/index.cfm?event=bug&id=3169196

TBH 我对使用一种甚至无法正确验证整数的语言感到有些尴尬.

TBH I'm a little embarrassed to be using a language that can't even validate integer correctly.

更新:

猜猜看,它会在 CF12 中解决!

Guess what, it'll be addressed in CF12!

毫无疑问,这种行为是不正确的.很明显错了,应该改正.然而,事情一直是这样的永远,做出如此根本的改变有很大的潜力破坏了很多应用程序.我们不想在这个版本中这样做.正如 Rakshith 已经传达的那样,我们计划进行此类更改在Dazzle"中,我们将纠正行为而不用担心向后兼容.

There is no doubt that this behavior is incorrect. It is obviously wrong and it should be corrected. However, it has been like this forever and making such a fundamental change has a great potential to break a lot of applications. We dont want to do that in this release. As Rakshith has already communicated, we plan to take up such changes in 'Dazzle' where we will correct the behavior without worrying about backward compatibility.

http:///blog.adamcameron.me/2014/02/can-we-please-agree-that-adobe-is-not.html

这篇关于为什么 isvalid("integer","1,5") = YES?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆