Skip to content

Commit

Permalink
tests: fixup urn RFC8141 validator name
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
  • Loading branch information
leodido committed Jun 3, 2024
1 parent 755e75e commit 8090251
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion baked_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ var (
"url": isURL,
"http_url": isHttpURL,
"uri": isURI,
"urn_rfc8141": isUrnRFC8141, // RFC 8141
"urn_rfc8141": isUrnRFC8141, // RFC 8141
"urn_rfc2141": isUrnRFC2141, // RFC 2141
"file": isFile,
"filepath": isFilePath,
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ This will accept any uri the golang request uri accepts
This validataes that a string value contains a valid URN
according to the RFC 8141 spec.
Usage: urn
Usage: urn_rfc8141
# Urn RFC 2141 String
Expand Down
2 changes: 1 addition & 1 deletion validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8183,7 +8183,7 @@ func TestUrnRFC8141(t *testing.T) {
{"urn:", false},
}

tag := "urn"
tag := "urn_rfc8141"

validate := New()

Expand Down

0 comments on commit 8090251

Please sign in to comment.