Skip to content

Commit

Permalink
chore(vulnerability): Overly permissive regex range (#11061)
Browse files Browse the repository at this point in the history
Co-authored-by: Harshal Sheth <[email protected]>
  • Loading branch information
pinakipb2 and hsheth2 authored Aug 3, 2024
1 parent 2c9e3b7 commit 210b311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata-ingestion/src/datahub/ingestion/source/mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def _replace_definitions(self, raw_query: str) -> str:
def _parse_definition_name(self, definition_variable: str) -> Tuple[str, str]:
name, alias = "", ""
# i.e '{{ @join_on_definition as alias}}'
name_match = re.findall("@[a-zA-z]+", definition_variable)
name_match = re.findall("@[a-zA-Z]+", definition_variable)
if len(name_match):
name = name_match[0][1:]
alias_match = re.findall(
Expand Down

0 comments on commit 210b311

Please sign in to comment.