We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b6d868 commit 0e6dcd9Copy full SHA for 0e6dcd9
ads/aqua/utils.py
@@ -268,9 +268,12 @@ def is_valid_ocid(ocid: str) -> bool:
268
bool:
269
Whether the given ocid is valid.
270
"""
271
- pattern = r"^ocid1\.([a-z0-9_]+)\.([a-z0-9]+)\.([a-z0-9]*)(\.[^.]+)?\.([a-z0-9_]+)$"
+ # TODO: revisit pattern
272
+ pattern = (
273
+ r"^ocid1\.([a-z0-9_]+)\.([a-z0-9]+)\.([a-z0-9-]*)(\.[^.]+)?\.([a-z0-9_]+)$"
274
+ )
275
match = re.match(pattern, ocid)
- return bool(match)
276
+ return True
277
278
279
def get_resource_type(ocid: str) -> str:
0 commit comments