-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: consolidate regex_metadata and adjust offsets
The implementation of adjusting regex-metadata match-offsets assumed the wrong data-type so while it passed the tests, in production it dropped all regex_metadata except that in the first section. In fairness, this never actually happened because the overchunking fixed in the previous commit made any element that had regex matches show up in its own single-element chunk. Reimplement for regex-metadata of type `Dict[str, List[RegexMetadata]]` rather than `List[RegexMetadata]`.
- Loading branch information
Showing
2 changed files
with
18 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters