mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +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 (pid) {
|
||||||
if (preferredPrefix) {
|
if (preferredPrefix) {
|
||||||
const newPid = pid.replace(/^[A-Za-z]+/, 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 overrideContent = findOverrideContent(path.join(tmpdir, i));
|
||||||
const docId = await ProblemModel.add(
|
const docId = await ProblemModel.add(
|
||||||
|
|||||||
Reference in new issue
Block a user