Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getMask()接口获取不到,isValue()功能不齐全 #285

Open
ljje-lze opened this issue Jun 20, 2024 · 1 comment
Open

getMask()接口获取不到,isValue()功能不齐全 #285

ljje-lze opened this issue Jun 20, 2024 · 1 comment

Comments

@ljje-lze
Copy link

1、MaskService中没有getMask()接口
2、isValue()并不是像文档所写的那样具有的功能,它在大多数类型中只是进行了简单的比较
2.1在zip-code类型
console.log(MaskService.isValid('zip-code','123456789',{}));//true
value (String, required): the value to be masked
value长度本来应该为8,但是在isValid接口中只有长度为9,返回值才为true。
2.2money类型
所有的入参都为true,源码是直接返回的true
2.3custom、credit-card、cpf、cnpj、celphone都是一直返回false
3、对于isValue()能不能具体解释一下作用,以及用法。它在每个类型里面用法都不一样

@ljje-lze
Copy link
Author

作者可以增加几个关于isValue()的demo吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant