Skip to content

Commit ca69485

Browse files
authored
Temp regex fix (#751)
2 parents 763c846 + e30707a commit ca69485

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

ads/aqua/utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,12 @@ def is_valid_ocid(ocid: str) -> bool:
268268
bool:
269269
Whether the given ocid is valid.
270270
"""
271-
pattern = r"^ocid1\.([a-z0-9_]+)\.([a-z0-9]+)\.([a-z0-9]*)(\.[^.]+)?\.([a-z0-9_]+)$"
271+
# TODO: revisit pattern
272+
pattern = (
273+
r"^ocid1\.([a-z0-9_]+)\.([a-z0-9]+)\.([a-z0-9-]*)(\.[^.]+)?\.([a-z0-9_]+)$"
274+
)
272275
match = re.match(pattern, ocid)
273-
return bool(match)
276+
return True
274277

275278

276279
def get_resource_type(ocid: str) -> str:

docs/source/release_notes.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
Release Notes
33
=============
44

5+
2.11.6
6+
------
7+
Release date: April 3, 2024
8+
9+
* Fixed bugs and introduced enhancements following our recent release, which included internal adjustments for future features and updates for the Jupyter Lab 3 upgrade.
10+
11+
512
2.11.5
613
------
714
Release date: March 25, 2024

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi"
2121

2222
# Required
2323
name = "oracle_ads" # the install (PyPI) name; name for local build in [tool.flit.module] section below
24-
version = "2.11.5"
24+
version = "2.11.6"
2525

2626
# Optional
2727
description = "Oracle Accelerated Data Science SDK"

0 commit comments

Comments
 (0)