Skip to content

Commit

Permalink
Fix split_at
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Apr 28, 2024
1 parent 8266a9a commit 49c59bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/src/bin/upstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async fn create_pull_request(
) -> Result<(), Box<dyn Error>> {
let current_tag = format!("@floating-ui/{}@{}", upstream_package, current_version);
let new_tag = release.tag_name;
let (_, new_version) = new_tag.split_at(new_tag.rfind('@').expect("Tag should contain @."));
let (_, new_version) = new_tag.split_at(new_tag.rfind('@').expect("Tag should contain @.") + 1);
let directory = format!("packages/{}", upstream_package);

log::debug!(
Expand Down

0 comments on commit 49c59bd

Please sign in to comment.