Skip to content

Commit

Permalink
prevent pulling uiua fork repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 25, 2024
1 parent ce6229e commit 90c7bb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,9 @@ code:
};
// Git import
let mut url = url.trim().trim_end_matches(".git").to_string();
if url.ends_with("/uiua") {
return Err(self.error(span.clone(), "Cannot import what looks like a Uiua fork"));
}
if ![".com", ".net", ".org", ".io", ".dev"]
.iter()
.any(|s| url.contains(s))
Expand Down

0 comments on commit 90c7bb2

Please sign in to comment.