Skip to content

Commit 8707a6c

Browse files
author
Steve Ayers
committed
Cleanup
1 parent 3bc457e commit 8707a6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

protovalidate/internal/extra_func.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,13 @@ def is_email(string: celtypes.Value) -> celpy.Result:
161161

162162

163163
def is_uri(string: celtypes.Value) -> celpy.Result:
164+
"""is_uri validates whether string is a valid URI."""
164165
valid = Uri(str(string)).uri()
165166
return celtypes.BoolType(valid)
166167

167168

168169
def is_uri_ref(string: celtypes.Value) -> celpy.Result:
170+
"""is_uri_reference validates whether string is a valid URI reference."""
169171
valid = Uri(str(string)).uri_reference()
170172
return celtypes.BoolType(valid)
171173

0 commit comments

Comments
 (0)