Skip to content

Conversation

@mgrange1998
Copy link
Contributor

Summary:
This adds supported for removing consecutive whitespace before comparing text inclusion.

Example:

I ate \n the apple => I ate    the apple

Would not match as equal to, as the new line would map to another space.

I ate the apple

This diff adds support for squashing consecutive whitespace after the filtering so verbatim text is matched correctly.

Differential Revision: D89493643

@meta-codesync
Copy link

meta-codesync bot commented Dec 30, 2025

@mgrange1998 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89493643.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 30, 2025
… cleaned text (facebookresearch#93)

Summary:

This adds supported for removing consecutive whitespace before comparing text inclusion. 

Example:
```
I ate \n the apple => I ate    the apple
```
Would not match as equal to, as the new line would map to another space. 
```
I ate the apple
```

This diff adds support for squashing consecutive whitespace after the filtering so verbatim text is matched correctly.

Reviewed By: lucamelis

Differential Revision: D89493643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant