Skip to content

Commit

Permalink
DH-5698/fix the uri validator (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza authored and DishenWang2023 committed May 7, 2024
1 parent bb4a5e1 commit 8aecf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataherald/sql_database/models/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class DatabaseConnection(BaseModel):

@classmethod
def get_dialect(cls, input_string):
pattern = r"([^:/]+):/+([^/]+)/([^/]+)"
pattern = r"([^:/]+):/+([^/]+)/?([^/]+)"
match = re.match(pattern, input_string)
if not match:
raise InvalidURIFormatError(f"Invalid URI format: {input_string}")
Expand Down

0 comments on commit 8aecf63

Please sign in to comment.