Closed betsydupuis closed 9 years ago
Interesting! So if you could define an array of strings/regexps for the searchString
field, would that work for you?
...
short_tags: {
files: {
src: ["**/*.php"]
},
options: {
searchString: [
/(<\?[^p])|(<\?$)/,
"a string"
],
logFormat: "console"
}
},
...
EDIT: doh. I just re-read the title of the issue. Got it. :)
This is a good idea, I'll totally add it for the next version.
Yes, a string or regex in an array would be perfect! I have a list of pngs that I want to check if they being used anywhere in an application.
Hey @itsjustluck - I just released 0.1.7 that allows you to include an array of strings/regexps. Mind giving it a go? If you have any problems with it, just raise a ticket. :)
I've been taking a look at it. It's really slow. :-/
It's a really big query. I'm look for ways to lighten the load. I'm thinking about using Cheerio to thin out my search to just src and style attributes.
Cool! And yeah, there are definitely improvements that could be made to this repo too - speed-wise, I mean.
I was hoping to use this in a project, but I need to search for a large set of data in an array rather than a single string or regex.