jlevy / jlevy/repren

--from does not accept pattern starting with #

Open
#7 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
374
Forks
39
Avg merge
3m
Merged PRs (30d)
1

Description

```
$ repren --from '#include ' --to '#include ' .
error: found no parse patterns
```

Same with `--literal`:

```
$ repren --literal --from '#include ' --to '#include ' .
error: found no parse patterns
```
##

This is because it interprets the `#` as a comment character (in function `parse_patterns()`).

It would be nice if this comment logic did not apply when patterns are supplied directly via `--from` `--to`, and/or when `--literal` is given.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.