dishmint / LexicalCases

Extract substrings matching a lexical pattern
https://www.paclets.com/FaizonZaman/LexicalCases
MIT License
2 stars 0 forks source link

Clean up pattern boundaries #276

Closed dishmint closed 7 months ago

dishmint commented 1 year ago

I've implemented it, but some longstanding behavior has reared its head. Note what gets replaced around "is cool" the spacing is inconsistent. an adjective text type should match just the text type and the spaces, but only bind to the word.

Image

Originally posted by @dishmint in https://github.com/dishmint/LexicalCases/issues/266#issuecomment-1585472888

dishmint commented 1 year ago

I can try setting MatchTrim to True by default with UpValues, but then in that case it would make sense for MatchTrim to be True in all cases. I'd rather just fix the pattern expansion.

dishmint commented 7 months ago
Screenshot 2024-01-27 at 4 47 08 AM

This is no longer an issue. Pushing changes soon.