-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize "\r\n" to "\n" to ensure ^ and $ match line boundaries
The regex crate only considers "\n" a line boundary, so ^ and $ don't match "\r\n". This can be a problem if code is checked out on Windows and Git helpfully rewrites your "\n" to "\r\n". I ran into this problem when testing GitHub Actions on the textwrap repository. See rust-lang/regex#244.
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,6 @@ toml = "0.5" | |
url = "2.0" | ||
itertools = "0.9" | ||
regex = "1.1" | ||
|
||
[dev-dependencies] | ||
tempfile = "3.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters