Repository navigation
sed: reject unknown POSIX class names in bracket expressions - #713
draarivpatel-ui wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #713 +/- ##
=======================================
Coverage 95.46% 95.46%
=======================================
Files 14 14
Lines 7789 7792 +3
Branches 473 474 +1
=======================================
+ Hits 7436 7439 +3
Misses 352 352
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
GNU sed accepts only the twelve POSIX class names inside
[::]and stops withInvalid character class namefor anything else. uutils copied the name to the regex engine, which silently accepts its own extras ([[:word:]],[[:ascii:]]) and misreads misspelt names such as[[:foo:]].The name is now checked against the POSIX list when a
[: :]construct terminates inparse_character_class. Collating symbols ([. .]) and equivalence classes ([= =]) are untouched.Closes #646