Skip to content

Conversation

@CrazyRoka
Copy link
Contributor

Description
This PR implements the -S / --sentence-regexp flag for ptx, bringing it closer to full GNU compatibility.

Previously, ptx only supported splitting input by lines. This change allows users to define a custom regular expression to split the input into sentences, as specified in the GNU documentation.

Tests
GNU Compatibility: This fixes the previously failing tests/ptx/ptx.pl test case S-infloop.
Unit Tests: Added new Rust unit tests in tests/by-util/test_ptx.rs.

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/tail/inotify-dir-recreate is now passing!

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/ptx/ptx is no longer failing!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants