pep-426: properly escape backslashes

This commit is contained in:
Daniel Holth 2013-06-22 19:17:17 -04:00
parent 5ad57e290b
commit 5e6a01452e
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
"metadata_version": {
"description": "Version of the file format",
"type": "string",
"pattern": "^(\d+(\.\d+)*)$"
"pattern": "^(\\d+(\\.\\d+)*)$"
},
"name": {
"description": "The name of the distribution.",
@ -17,7 +17,7 @@
"version": {
"description": "The distribution's public version identifier",
"type": "string",
"pattern": "^(\d+(\.\d+)*)((a|b|c|rc)(\d+))?(\.(post)(\d+))?(\.(dev)(\d+))?$"
"pattern": "^(\\d+(\\.\\d+)*)((a|b|c|rc)(\\d+))?(\\.(post)(\\d+))?(\\.(dev)(\\d+))?$"
},
"source_label": {
"description": "A constrained identifying text string",