-
@JingYi1213
-
Here is an example. Why? When I remove `g` flag, it works properly. Why?
```javascript
let constraint = {
"mobile": {
"presence": true,
"format": {
"pattern": /…
-
Topic for questions about the package usage that does not require a new issue. Feel free to ask about anything!
-
Great stuff!
However there seems to be an issue with the concept of defining functions for fields properties and validators as standard JSON does not allow / support to generate JSON containing jav…
-
__TLDR:__ we propose reviewing our current docs to look for:
- pages that don’t have useful content
- broken links
- bad/broken code examples & demos
- other ways we can improve them to make the…
-
Hey @ansman ,
I have a simple question. Can I invalidate something inside custom function with a message?
```
function(value, attributes, attributeName, options, constraints) {
if(attribu…
-
Radio buttons presence will evaluate to true if the radio button has a value set, but the radio button isn't selected. It appears as if presence evaluates against the input value. For radio buttons th…
jtuds updated
7 years ago
-
### validation
* https://validatejs.org/ 의 좌측 목록을 참고하셔서 라이브러리에서 어떤 validator 를 만드는지 참고하시면 좋을 것 같습니다
* 실무에서는 타입에 대한 검증 뿐만 아니라, 사용자가 입력한 데이터가 적합한가를 regex 를 사용해서 검증하는 경우도 많습니다
* 보통 validator 에는 에러를 만…
-
**I'm submitting a feature request**
**Current behavior:**
Given the follwing template code:
<input type="hidden" value.bind="newEntry.address.street1 &validate" />
<input type="hidden"…
-
The `can` package is over 80MB. Most of this (~72MB) is from the `doc` folder.
For CanJS 5, I think we should remove the `doc` folder from what we publish. This was ok before `5` because no one…