Skip to content

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.

2 participants