Skip to content

Commit

Permalink
Merge pull request #183 from kevin-glare/fix/update-uuid-regex
Browse files Browse the repository at this point in the history
Fix: Update UUID_REGEX
  • Loading branch information
davishmcclurg authored May 30, 2024
2 parents af2ffd4 + 4cee9ef commit 414ca1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/json_schemer/format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module Format
IP_REGEX = /\A[\h:.]+\z/.freeze
INVALID_QUERY_REGEX = /\s/.freeze
IRI_ESCAPE_REGEX = /[^[:ascii:]]/
UUID_REGEX = /\A\h{8}-\h{4}-\h{4}-[89AB]\h{3}-\h{12}\z/i
UUID_REGEX = /\A\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\z/i
NIL_UUID = '00000000-0000-0000-0000-000000000000'
BINARY_TO_PERCENT_ENCODED = 256.times.each_with_object({}) do |byte, out|
out[-byte.chr(Encoding::BINARY)] = -sprintf('%%%02X', byte)
Expand Down

0 comments on commit 414ca1e

Please sign in to comment.