Commit bcf8006
authored
nix: Fix ambiguous backslash-escape in the version number regex (#225)
The latest version of lix (v2.95.1) has deprecated \. as a string escape as it is ill-defined, issuing this warning now:
warning: \. is an ill-defined escape. You can drop the \ and simply write . instead. Use --extra-deprecated-features broken-string-escape to silence this warning.
But unfortunately, using "." doesn't carry the intended meaning. What we need to do here is to use "\\." to match a regex-escaped period.
Signed-off-by: Andreas Fuchs <asf@boinkor.net>1 parent d6d2679 commit bcf8006
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments