Commit c566fa9
Fix sed regex hyphen placement
`sed` complained about the former rule contained an illegal charanger
range. According to [0], 9.3.5 RE Bracked Expression (7) one's supposed
to have the - be either first or last for it to be treated literally.
This is also different from some languages, e.g. python, in which the
previous regex works just fine.
[0]: https://www2.cs.sfu.ca/~anoop/courses/CMPT-379-Fall-2004/posix-regexp.html
(cherry picked from commit 6b5c18c)1 parent adf7f65 commit c566fa9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments