mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Cli serve_web sets the path prefix to /<quality>-<commit>/, commit value parsing error (#233986)
fix #233984
This commit is contained in:
@@ -252,6 +252,7 @@ fn get_release_from_path(path: &str, platform: Platform) -> Option<(Release, Str
|
|||||||
|
|
||||||
let (quality_commit, remaining) = path.split_at(i);
|
let (quality_commit, remaining) = path.split_at(i);
|
||||||
let (quality, commit) = quality_commit.split_at(quality_commit_sep);
|
let (quality, commit) = quality_commit.split_at(quality_commit_sep);
|
||||||
|
let commit = &commit[1..];
|
||||||
|
|
||||||
if !is_commit_hash(commit) {
|
if !is_commit_hash(commit) {
|
||||||
return None;
|
return None;
|
||||||
|
|||||||
Reference in New Issue
Block a user