fix: target literal financial diagnostics and document V09 QA coverage
This commit is contained in:
@@ -106,8 +106,11 @@ export default function PortalCorrections() {
|
||||
({ label }) =>
|
||||
label && hints.some((h) => fieldLabelMatches(label, h)),
|
||||
);
|
||||
// Restrict explicit product/parcel diagnostics to the matching real group, if present.
|
||||
const index = /produto\s+(\d+)|parcela\s+(\d+)/i.exec(message);
|
||||
// Restrict explicit product/parcel/milestone/personnel diagnostics to the matching real group, if present.
|
||||
const index =
|
||||
/(?:produto|parcela|marco|função|necessidade)\s+(\d+)/i.exec(
|
||||
message,
|
||||
);
|
||||
const indexed = index
|
||||
? matches.filter(({ control }) => {
|
||||
const group = control.closest(
|
||||
@@ -118,7 +121,7 @@ export default function PortalCorrections() {
|
||||
group?.querySelector('legend')?.textContent ||
|
||||
'';
|
||||
return new RegExp(
|
||||
`(?:produto|parcela)\\s+${index[1] || index[2]}\\b`,
|
||||
`(?:produto|parcela|marco|função|necessidade)\\s+${index[1]}\\b`,
|
||||
'i',
|
||||
).test(name);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user