fix(審查流程): 修正 bot 跳過、JSON 驗證與排除比對邊界
This commit is contained in:
+2
-1
@@ -69,7 +69,8 @@ export function parseLocation(location) {
|
||||
if (trimmed.includes(',')) return null;
|
||||
const match = trimmed.match(/^(.+?):(\d+)(?:-\d+)?$/);
|
||||
if (!match) return null;
|
||||
return { file: match[1], line: Number(match[2]) };
|
||||
const line = Number(match[2]);
|
||||
return line > 0 ? { file: match[1], line } : null;
|
||||
}
|
||||
|
||||
/** 行內 comment 內容:等級/審查員/建議 */
|
||||
|
||||
Reference in New Issue
Block a user