Skip to content

fix(flake): issues reported by lix's broken-string-escape - #378

Closed
jalil-salame wants to merge 1 commit into
serokell:masterfrom
jalil-salame:push-tnvtsxmsztqp
Closed

fix(flake): issues reported by lix's broken-string-escape#378
jalil-salame wants to merge 1 commit into
serokell:masterfrom
jalil-salame:push-tnvtsxmsztqp

Conversation

@jalil-salame

Copy link
Copy Markdown

Lix 1.95+ warns on broken-string-escape, escapes that return the original character. In this case, the regexes where trying to match a literal . instead of any character, so they escaped the . by writing \..

Since \. is not a valid escape, nix parses this as ., to follow the intention of the code you need to instead write \\.

Lix 1.95+ warns on `broken-string-escape`, escapes that return the
original character. In this case, the regexes where trying to match a
literal `.` instead of any character, so they escaped the `.` by writing
`\.`.

Since `\.` is not a valid escape, nix parses this as `.`, to follow the
intention of the code you need to instead write `\\.`

Signed-off-by: Jalil David Salamé Messina <jalil.salame@gmail.com>
@bitbloxhub

bitbloxhub commented Jun 8, 2026

Copy link
Copy Markdown

This is the fourth PR to do this:

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.

2 participants