Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils/escape_attr: enclose with quotes all elements but the first + tests #344

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

lucasew
Copy link
Contributor

@lucasew lucasew commented Aug 5, 2023

I found a lexing issue in nix when running nixpkgs-review for NixOS/nixpkgs#247099.

It generated a line like haskelPackages.if and Nix confused it with a if statement.

I also added tests to check compliance.

tests/test_escape_attr.py Outdated Show resolved Hide resolved
tests/test_escape_attr.py Outdated Show resolved Hide resolved
tests/test_escape_attr.py Outdated Show resolved Hide resolved
tests/test_escape_attr.py Outdated Show resolved Hide resolved
@Mic92
Copy link
Owner

Mic92 commented Aug 6, 2023

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Aug 6, 2023

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 206889b

@mergify mergify bot merged commit 206889b into Mic92:master Aug 6, 2023
4 checks passed
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