mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: bug fix
This commit is contained in:
1 file changed
+2
-2
@@ -451,9 +451,9 @@ export class ProblemModel {
|
||||
if (pid) {
|
||||
if (preferredPrefix) {
|
||||
const newPid = pid.replace(/^[A-Za-z]+/, preferredPrefix);
|
||||
if (isValidPid(newPid)) pid = newPid;
|
||||
if (await isValidPid(newPid)) pid = newPid;
|
||||
}
|
||||
if (!isValidPid(pid)) pid = undefined;
|
||||
if (!await isValidPid(pid)) pid = undefined;
|
||||
}
|
||||
const overrideContent = findOverrideContent(path.join(tmpdir, i));
|
||||
const docId = await ProblemModel.add(
|
||||
|
||||
Reference in new issue
Block a user