File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
akka-http/src/main/scala/akka/http/scaladsl Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ trait PathMatchers {
486486 * @group pathmatcher
487487 */
488488 val JavaUUID : PathMatcher1 [UUID ] =
489- PathMatcher (""" [\da-fA-F]{8}-[\da-fA-F]{4}-[1-5][0-9a- fA-F]{3 }-[89abAB][ \da-fA-F]{3 }-[\da-fA-F]{12}|00000000-0000-0000-0000-000000000000 """ .r)
489+ PathMatcher (""" [\da-fA-F]{8}-[\da-fA-F]{4}-[\da- fA-F]{4 }-[\da-fA-F]{4 }-[\da-fA-F]{12}""" .r)
490490 .map(UUID .fromString)
491491
492492 /**
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ trait PredefinedFromStringUnmarshallers {
4747
4848 implicit val uuidFromStringUnmarshaller : Unmarshaller [String , UUID ] = {
4949 val validUuidPattern =
50- " [0-9a- fA-F]{8}-[0-9a- fA-F]{4}-[1-5][0-9a- fA-F]{3 }-[89abAB][0-9a- fA-F]{3 }-[0-9a- fA-F]{12}|00000000-0000-0000-0000-000000000000 " .r.pattern
50+ """ [\da- fA-F]{8}-[\da- fA-F]{4}-[\da- fA-F]{4 }-[\da- fA-F]{4 }-[\da- fA-F]{12}"" " .r.pattern
5151
5252 Unmarshaller .strict[String , UUID ] { string =>
5353 if (validUuidPattern.matcher(string).matches)
You can’t perform that action at this time.
0 commit comments