修复匹配的问题
This commit is contained in:
@@ -79,7 +79,7 @@ export function effectiveParserModeForRoute(route: BusinessRouteDefinition, conf
|
||||
return route.parserPolicy === 'program_only' ? 'program' : 'ai';
|
||||
}
|
||||
|
||||
const PROGRAM_VERSION = 'ltjt-program-parser-v1.0.13';
|
||||
const PROGRAM_VERSION = 'ltjt-program-parser-v1.0.14';
|
||||
export const BUSINESS_INPUT_CONTRACT_VERSION = 'business-input-templates-0.5.136';
|
||||
|
||||
const lookupFields = ({ customerRequired = true } = {}): ProgramFieldDefinition[] => [
|
||||
|
||||
@@ -273,8 +273,10 @@ function parseDateList(rawValue: string, context: DateContext, nextOccurrence: b
|
||||
}
|
||||
|
||||
function namedRef(rawValue: string): JsonRecord {
|
||||
const keyword = compactText(rawValue);
|
||||
return { name: keyword.replace(/人名币/gu, '人民币'), keyword };
|
||||
// Keep the supplied spelling for traceability; only the comparison name
|
||||
// retains the existing width normalization and registered typo alias.
|
||||
const keyword = String(rawValue || '').trim();
|
||||
return { name: compactText(keyword).replace(/人名币/gu, '人民币'), keyword };
|
||||
}
|
||||
|
||||
function positiveInteger(rawValue: string): FieldParseResult {
|
||||
|
||||
Reference in New Issue
Block a user