Repository navigation
Commit 800f207
committed
refactor(schema): simplify prefix validation regex
Annoying yak shave:
- I have an ecosystem cross-reference unit test for osv.dev in the works,
which relies on using the regex in the schema definition, verbatim.
- [Python 3.7 has a FutureWarning on set constructs](https://docs.python.org/dev/whatsnew/3.7.html#re), where as far as I can tell, `(:[[:digit:]]+)?` would need to be written as `(:\[[:digit:]]+)?`, which isn't valid in the JSON Schema (more in python/cpython#74534)
Signed-off-by: Andrew Pollock <apollock@google.com>1 parent 3ab86b6 commit 800f207
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
0 commit comments