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

Fix InvalidTailwindDirective in notSemicolonLanguages with CRLF file endings #723

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

TheRealSyler
Copy link
Contributor

Just adds (\r)? to the find tailwind directive regex so that it recognizes \r\n as the end of line, this was the error that i got:

'utilities
' is not a valid value. Did you mean 'utilities'?(invalidTailwindDirective)

steps to reproduce

  1. go into any tailwind app
  2. create app.sass
  3. paste @tailwind utilities
  4. change file endings to CRLF
  5. now you should see the warning

@thecrypticace thecrypticace merged commit 3aafffe into tailwindlabs:master Mar 6, 2023
@thecrypticace
Copy link
Contributor

Thanks! Made one tweak as [^\r\n] is what you want here. The regex [^(\r)?\n] would match any character that is not: \r, \n, (, ), or ? when we just want to exclude either \r or \n.

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.

None yet

2 participants