File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 {% endif %}
1919
2020
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+
2224 {%- 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 - %}
2331 {%- set matched_path = re .search (exclude_paths_pattern, resource_path, re .IGNORECASE ) - %}
2432 {%- if matched_path and resource .package_name == project_name %}
2533 {% set ns .exclude = true %}
You can’t perform that action at this time.
0 commit comments