Skip to content

Commit

Permalink
fix: template replace ignore tgz
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Apr 3, 2024
1 parent c5798b1 commit 5c2207b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/taro_init/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub static PACKAGES_MANAGEMENT: Lazy<HashMap<&NpmType, PackageCommand>> = Lazy::
});

pub static MEDIA_REGEX: Lazy<regex::Regex> =
Lazy::new(|| regex::Regex::new(r"\.(png|jpe?g|gif|svg|webp|jar|keystore)$").unwrap());
Lazy::new(|| regex::Regex::new(r"\.(png|jpe?g|gif|svg|webp|jar|keystore|tgz)$").unwrap());

pub static TEMPLATE_CREATOR: &str = "template_creator.js";

Expand Down

0 comments on commit 5c2207b

Please sign in to comment.