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

String matches does not work #7

Open
jprivillaso opened this issue Apr 8, 2021 · 0 comments
Open

String matches does not work #7

jprivillaso opened this issue Apr 8, 2021 · 0 comments

Comments

@jprivillaso
Copy link

Hello!

First of all, thanks for the lib. It's really useful. However, I can't make this template work

#if( $limit != '' && $limit.matches('^\d$'))
{ "ok": 1 }
#else
{ "ok": 2 }
#end

The payload is

{
  "limit": "3"
}

Isn't the matches function a built-in method? I'd love to help to implement this workaround if you instruct me how to do it.

Thanks

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