Skip to content

Commit

Permalink
allow hex with prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
BolajiOlajide authored and Marsup committed Jan 17, 2024
1 parent fb5926c commit 821b268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const internals = {
}
},
dataUriRegex: /^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,
hexRegex: /^[a-f0-9]+$/i,
hexRegex: /^(0x)?[0-9a-f]+$/i,
ipRegex: Ip.regex({ cidr: 'forbidden' }).regex,
isoDurationRegex: /^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,

Expand Down

0 comments on commit 821b268

Please sign in to comment.