fix(process)!: version literal scenario replacement semantics
Keep caller-selected replacement text literal with a callback, preserving empty-search positions instead of changing their split/join behavior. Commit the replacement interpretation for captures using custom patterns so legacy records cannot report this producer correction as a target change. BREAKING CHANGE: Captures with custom normalization patterns use literal-replacements-v1 and cannot be compared with legacy unversioned pattern captures. Capture both sides with the same replacement semantics; legacy captures remain readable and captures without patterns are unaffected.
This commit is contained in:
@@ -108,6 +108,9 @@ export const processComparisonContract = (
|
||||
...(scenario.normalization.ports
|
||||
? { port_normalization_version: "contextual-endpoints-v2" }
|
||||
: {}),
|
||||
...(scenario.normalization.patterns.length > 0
|
||||
? { pattern_normalization_version: "literal-replacements-v1" }
|
||||
: {}),
|
||||
rendered_line_format: "trailing-spaces-trimmed-v1",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user