Skip to content

Commit

Permalink
Narrow down [PyPi] regex expressions (#6184)
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB authored Feb 14, 2021
1 parent 106f725 commit bf8c86f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/pypi/pypi-django-versions.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Joi = require('joi')
const t = (module.exports = require('../tester').createServiceTester())

const isPipeSeparatedDjangoVersions = Joi.string().regex(
/^([0-9]+\.[0-9]+(?: \| )?)+$/
/^([1-9]\.[0-9]+(?: \| )?)+$/
)

t.create('supported django versions (valid, package version in request)')
Expand Down
2 changes: 1 addition & 1 deletion services/pypi/pypi-python-versions.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)')
Expand Down

0 comments on commit bf8c86f

Please sign in to comment.