We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
info
npm_package_version
beta-rc
1 parent 0234336 commit 0012782Copy full SHA for 0012782
.changes/fix-info-npm-version.md
@@ -0,0 +1,5 @@
1
+---
2
+"cli.rs": patch
3
4
+
5
+Fixes `tauri info` display version for the `@tauri-apps/api` package.
tooling/cli.rs/src/info.rs
@@ -178,7 +178,7 @@ fn npm_package_version<P: AsRef<Path>>(
178
};
179
if output.status.success() {
180
let stdout = String::from_utf8_lossy(&output.stdout);
181
- let regex = regex::Regex::new("@([\\da-zA-Z\\.]+)").unwrap();
+ let regex = regex::Regex::new("@([\\da-zA-Z\\-\\.]+)").unwrap();
182
Ok(
183
regex
184
.captures_iter(&stdout)
0 commit comments