We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d67652 commit a9c01d1Copy full SHA for a9c01d1
lib/types/string.js
@@ -24,9 +24,9 @@ const internals = {
24
},
25
dataUriRegex: /^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,
26
hexRegex: {
27
- withPrefix: /^0x[0-9a-f]+$/i,
28
- withOptionalPrefix: /^(?:0x)?[0-9a-f]+$/i,
29
- withoutPrefix: /^[0-9a-f]+$/i
+ withPrefix: /^0x[0-9a-f]+$/i,
+ withOptionalPrefix: /^(?:0x)?[0-9a-f]+$/i,
+ withoutPrefix: /^[0-9a-f]+$/i
30
31
ipRegex: ipRegex({ cidr: 'forbidden' }).regex,
32
isoDurationRegex: /^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,
0 commit comments