Skip to content

Use the path of --replacement-file as it is, with no escapes and no aliases to close #817 - #834

Merged
mathiasrw merged 1 commit into
mainfrom
fix/817
Oct 23, 2026
Merged

mathiasrw merged 1 commit into
mainfrom
fix/817

Conversation

@mathiasrw

Copy link
Copy Markdown
Owner

Closes #817

Stacked on #833.

Change

The path of --replacement-file is the name of a file, so it is now used as it is:

  • No escapes. Before, my\dir/new.txt was looked for as mydir/new.txt, and partials\new.html got a line break.
  • No € and § aliases, as they are never used in globs and file names. Before, price€.txt was looked for as price$.txt.

With --js the code gives the path, and the code is typed, so the aliases and escapes are still used in the code, as before.

Tests

test/fix/817.test.js is new, and its tests with a backslash and with € fail without the fix. yarn test-ci passes.

From the review of 23 October.

@mathiasrw
mathiasrw added this pull request to stack #841 October 23, 2026 13:56
@mathiasrw
mathiasrw removed this pull request from stack #841 October 23, 2026 15:57
@mathiasrw
mathiasrw added this pull request to stack #849 October 23, 2026 16:12
@mathiasrw
mathiasrw removed this pull request from stack #849 October 23, 2026 16:12
@mathiasrw
mathiasrw added this pull request to stack #850 October 23, 2026 16:17
@mathiasrw
mathiasrw removed this pull request from stack #850 October 23, 2026 16:47
@mathiasrw
mathiasrw added this pull request to stack #853 October 23, 2026 16:51
Base automatically changed from fix/816 to main October 23, 2026 17:00
@mathiasrw
mathiasrw merged commit a90093f into main Oct 23, 2026
6 of 7 checks passed
@mathiasrw
mathiasrw deleted the fix/817 branch October 23, 2026 17:12
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.

Fix escapes and aliases in the path of --replacement-file

1 participant