File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 18
18
{% endif %}
19
19
20
20
21
- {# - we exclude the resource if it is from the current project and matches the pattern -#}
21
+ {# - we duplicate the exclusion list to account for windows directory patterns -#}
22
+ {%- set exclude_all_os_paths_from_project = [] - %}
23
+
22
24
{%- for exclude_paths_pattern in var(' exclude_paths_from_project' ,[]) - %}
25
+ {%- set windows_path_pattern = exclude_paths_pattern | replace(" /" , " \\\\\\\\" ) - %}
26
+ {%- do exclude_all_os_paths_from_project .extend ([exclude_paths_pattern, windows_path_pattern]) - %}
27
+ {%- endfor - %}
28
+
29
+ {# - we exclude the resource if it is from the current project and matches the pattern -#}
30
+ {%- for exclude_paths_pattern in exclude_all_os_paths_from_project - %}
23
31
{%- set matched_path = re .search (exclude_paths_pattern, resource_path, re .IGNORECASE ) - %}
24
32
{%- if matched_path and resource .package_name == project_name %}
25
33
{% set ns .exclude = true %}
You can’t perform that action at this time.
0 commit comments