Include file exclusions don't work
Roger López - March 12, 2009 - 16:20
| Project: | Coder |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
I noticed that the exclusions were not working on this string:
sites/all/modules/custom/*/node.*.inc
A dsm() of the $exclusions variable showed that it was being converted to this regex:
sites\/all\/modules\/custom\/\.*\/node\.\.*\.inc
node.*.inc should end up as node\..*\.inc, but the . in .* is getting escaped. Looks like this is caused by the order of string replacement in prepping the regex.
This patch moves the * replacement to the end of the str_replace() operation and fixes it for me.
| Attachment | Size |
|---|---|
| coder.exclusions.patch | 1.07 KB |
