Skip to content

Commit 3798160

Browse files
committed
Merge branch 'chalker/fix-comma' of git://github.com/ChALkeR/ajv into ChALkeR-chalker/fix-comma
2 parents 7402f98 + 981317c commit 3798160

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/compile/formats.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ formats.fast = {
3636
time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,
3737
'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,
3838
// uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
39-
uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,
40-
'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
39+
uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
40+
'uri-reference': /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
4141
'uri-template': URITEMPLATE,
4242
url: URL,
4343
// email (sources from jsen validator):

0 commit comments

Comments
 (0)