Handle WF500 IDs on processing page

This commit is contained in:
2026-03-16 15:38:33 -05:00
parent 018593be05
commit 39efec9ed7
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -8,6 +8,7 @@ document.addEventListener('DOMContentLoaded', () => {
let activeDownloadUrl = null;
const PROCESS_FORM_STATE_KEY = 'bugmedley.process.formState.v1';
const ISSUE_ID_PATTERN = /\b((?:[A-Z]{2,6}|WF500)-\d{4,8})\b/i;
function loadProducts() {
fetch('data/products.json')
@@ -120,7 +121,7 @@ function parseIssuesFromHtmlTable(htmlText) {
return;
}
const issueIdMatch = leftCellText.match(/\b([A-Z]{2,6}-\d{4,8})\b/i);
const issueIdMatch = leftCellText.match(ISSUE_ID_PATTERN);
if (!issueIdMatch) {
return;
}
@@ -258,7 +259,7 @@ function parseIssuesFromLinePairs(rawText) {
continue;
}
const issueIdMatch = lines[i].match(/\b([A-Z]{2,6}-\d{4,8})\b/i);
const issueIdMatch = lines[i].match(ISSUE_ID_PATTERN);
if (!issueIdMatch) {
continue;
}