Skip to content

Commit

Permalink
DH-5698/fix the uri validator
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Apr 4, 2024
1 parent c8c6a28 commit 37a7c38
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 37a7c38

Please sign in to comment.