mirror of
https://github.com/badges/shields.git
synced 2025-07-05 13:41:14 +03:00
Narrow down [PyPi] regex expressions (#6184)
This commit is contained in:
@ -4,7 +4,7 @@ const Joi = require('joi')
|
||||
const t = (module.exports = require('../tester').createServiceTester())
|
||||
|
||||
const isPipeSeparatedPythonVersions = Joi.string().regex(
|
||||
/^([0-9]+\.[0-9]+(?: \| )?)+$/
|
||||
/^([1-9]\.[0-9]+(?: \| )?)+$/
|
||||
)
|
||||
|
||||
t.create('python versions (valid, package version in request)')
|
||||
|
Reference in New Issue
Block a user