1
0
mirror of https://github.com/badges/shields.git synced 2025-07-30 17:23:07 +03:00

Narrow down [PyPi] regex expressions (#6184)

This commit is contained in:
Pierre-Yves B
2021-02-14 19:31:53 +00:00
committed by GitHub
parent 106f72524c
commit bf8c86fafc
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const Joi = require('joi')
const t = (module.exports = require('../tester').createServiceTester()) const t = (module.exports = require('../tester').createServiceTester())
const isPipeSeparatedDjangoVersions = Joi.string().regex( const isPipeSeparatedDjangoVersions = Joi.string().regex(
/^([0-9]+\.[0-9]+(?: \| )?)+$/ /^([1-9]\.[0-9]+(?: \| )?)+$/
) )
t.create('supported django versions (valid, package version in request)') t.create('supported django versions (valid, package version in request)')

View File

@ -4,7 +4,7 @@ const Joi = require('joi')
const t = (module.exports = require('../tester').createServiceTester()) const t = (module.exports = require('../tester').createServiceTester())
const isPipeSeparatedPythonVersions = Joi.string().regex( const isPipeSeparatedPythonVersions = Joi.string().regex(
/^([0-9]+\.[0-9]+(?: \| )?)+$/ /^([1-9]\.[0-9]+(?: \| )?)+$/
) )
t.create('python versions (valid, package version in request)') t.create('python versions (valid, package version in request)')