Skip to content

Fix the input filename in the regex capture example - #496

Open
dajiaohuang wants to merge 1 commit into
dalance:masterfrom
dajiaohuang:docs/capture-example-filename-20261016
Open

dajiaohuang wants to merge 1 commit into
dalance:masterfrom
dajiaohuang:docs/capture-example-filename-20261016

Conversation

@dajiaohuang

Copy link
Copy Markdown

The regex-capture example reads and displays text.txt, but its ambr command instead targets test.txt. In a directory containing just the shown text.txt, the command reports a missing file and leaves the contents unchanged.

Use text.txt consistently. Verified in an isolated directory: the original command reports the missing test.txt; the corrected command changes aaa bbb\n into exactly aaa bbb aaa bbb\n, as shown in the README. No other files are created or changed.

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.

1 participant