Skip to content

Commit

Permalink
add: support for git:// urls to parse_npm_git_url macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabolol committed Nov 28, 2024
1 parent 755cc60 commit b51a0e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions warehouse/dbt/macros/models/parse_npm_git_url.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ normalized_urls as (
regexp_replace(cleaned_url, r'^git@(.*?):', 'https://\\1/')
when regexp_contains(cleaned_url, r'^git\+https://') then
regexp_replace(cleaned_url, r'^git\+', '')
when regexp_contains(cleaned_url, r'^git://') then
regexp_replace(cleaned_url, r'^git://', 'https://')
when regexp_contains(cleaned_url, r'^[^:/]+\.[^:/]+/') then
concat('https://', cleaned_url)
when regexp_contains(cleaned_url, r'^https?://') then
Expand Down

0 comments on commit b51a0e7

Please sign in to comment.