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

룰셋에서 커스텀룰 name이 id일 때 커스텀룰이 추가되지 않음 #885

Closed
lansi951 opened this issue Aug 6, 2014 · 1 comment

Comments

@lansi951
Copy link
Contributor

lansi951 commented Aug 6, 2014

<rule name="id" type="regex" test="/^[a-z0-9_-]$/" />

이런 경우에 컴파일된 스크립트에서
v.cast('ADD_RULE') 함수가 추가되지 않네요.

@lansi951
Copy link
Contributor Author

lansi951 commented Aug 9, 2014

if(strpos('email,userid,url,alpha,alpha_number,number,', $name . ',') !== false)
{
continue;
}

여기서 생기는 문제인 거 같습니다.
strpos를 in_array($name, array('email', 'userid', 'url', 'alpha', 'alpha_number', 'number'));로 변경해야 할 것 같네요.

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