We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2338bd6 commit fbaa4adCopy full SHA for fbaa4ad
lib/tailwindcss/purger.rb
@@ -1,7 +1,7 @@
1
# frozen_string_literal: true
2
3
class Tailwindcss::Purger
4
- CLASS_NAME_PATTERN = /[:A-Za-z0-9_-]+[\.]*[\\\/:A-Za-z0-9_-]*/
+ CLASS_NAME_PATTERN = /((?:[:A-Za-z0-9_-]+[\\\/:A-Za-z0-9_-]*[0-3][\\.]*5)|(?:[A-Za-z0-9_-]+[\\\/:A-Za-z0-9_-]*))/
5
6
CLASS_BREAK = /(?![-_a-z0-9\\])/i # `\b` for class selectors
7
@@ -29,7 +29,7 @@ def purge(input, keeping_class_names_from_files:)
29
end
30
31
def extract_class_names(string)
32
- string.scan(CLASS_NAME_PATTERN).uniq.sort!
+ string.scan(CLASS_NAME_PATTERN).flatten.uniq.sort!
33
34
35
def extract_class_names_from(files)
0 commit comments