Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Ignoring minified CSS #219

Closed
wants to merge 1 commit into from

4 participants

@joelklabo

Same strategy and minified javascript.

#218

@mihaifm

+1

@petdance
Owner

This will be in ack 2.0, not in 1.x.

@petdance petdance closed this
@petdance
Owner

This has been implemented in ack 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 3, 2012
  1. @joelklabo

    Ignoring minified CSS

    joelklabo authored
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 2 deletions.
  1. +3 −0  Ack.pm
  2. +2 −0  ack
  3. +1 −0  ack-help-dirs.txt
  4. +3 −2 ack-help.txt
View
3  Ack.pm
@@ -560,6 +560,7 @@ Recognized files:
/[._].*\.swp$/ - Vi(m) swap files
/core\.\d+$/ - core dumps
/[.-]min\.js$/ - Minified javascript files
+ /[.-]min\.css$/ - Minified CSS files
Note that I<$filename> must be just a file, not a full path.
@@ -575,6 +576,7 @@ sub is_searchable {
return if $filename =~ m{^core\.\d+$}o;
return if $filename =~ m{[._].*\.swp$}o;
return if $filename =~ /[.-]min\.js$/;
+ return if $filename =~ /[.-]min\.css$/;
return 1;
}
@@ -818,6 +820,7 @@ File inclusion/exclusion:
/[._].*\\.swp\$/ - Vi(m) swap files
/core\\.\\d+\$/ - core dumps
/[.-]min\\.js\$/ - Minified javascript files
+ /[.-]min\\.css\$/ - Minified CSS files
Miscellaneous:
--noenv Ignore environment variables and ~/.ackrc
View
2  ack
@@ -1652,6 +1652,7 @@ sub is_searchable {
return if $filename =~ m{^core\.\d+$}o;
return if $filename =~ m{[._].*\.swp$}o;
return if $filename =~ /[.-]min\.js$/;
+ return if $filename =~ /[.-]min\.css$/;
return 1;
}
@@ -1860,6 +1861,7 @@ File inclusion/exclusion:
/[._].*\\.swp\$/ - Vi(m) swap files
/core\\.\\d+\$/ - core dumps
/[.-]min\\.js\$/ - Minified javascript files
+ /[.-]min\\.css\$/ - Minified CSS files
Miscellaneous:
--noenv Ignore environment variables and ~/.ackrc
View
1  ack-help-dirs.txt
@@ -115,6 +115,7 @@ File inclusion/exclusion:
/[._].*\.swp$/ - Vi(m) swap files
/core\.\d+$/ - core dumps
/[.-]min\.js$/ - Minified javascript files
+ /[.-]min\.css$/ - Minified CSS files
Miscellaneous:
--noenv Ignore environment variables and ~/.ackrc
View
5 ack-help.txt
@@ -112,9 +112,10 @@ File inclusion/exclusion:
Files not checked for type:
/~$/ - Unix backup files
/#.+#$/ - Emacs swap files
- /[._].*\.swp$/ - Vi(m) swap files
- /core\.\d+$/ - core dumps
+ /[._].*\.swp$/ - Vi(m) swap files
+ /core\.\d+$/ - core dumps
/[.-]min\.js$/ - Minified javascript files
+ /[.-]min\.css$/ - Minified CSS files
Miscellaneous:
--noenv Ignore environment variables and ~/.ackrc
Something went wrong with that request. Please try again.