This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
Replies: 2 comments 1 reply
-
See my answer in #657. In this particular case, pattern constraints cannot match against numbers and must match against fields. |
Beta Was this translation helpful? Give feedback.
1 reply
-
This discussion has been migrated to cue-lang/cue#659. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When researching an answer to #657 (restrict string length), I had the following regex:
Which works, but only for length 8. So, loosely inspired by the documentation at https://cuelang.org/docs/tutorials/tour/references/emit/ and https://cuelang.org/docs/tutorials/tour/types/templates/ I thought I could apply that to regexes and attempted:
... that does NOT work ;-) is there a way to template regexes like this?
Beta Was this translation helpful? Give feedback.
All reactions