aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/source/paths_source.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/source/paths_source.d')
-rw-r--r--src/sdp/source/paths_source.d8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sdp/source/paths_source.d b/src/sdp/source/paths_source.d
index 5637c80..462fc85 100644
--- a/src/sdp/source/paths_source.d
+++ b/src/sdp/source/paths_source.d
@@ -241,7 +241,7 @@ template PathMatters() {
}
string base_dir() {
string _dir;
- if ( // TODO this should catch generated --source sisupod, untested, needs manifest
+ if (
auto m = (absolute_path_to_src)
.match(regex(r"[/](?P<dir>(?:[a-zA-Z0-9._-]+))/sisupod/" ~ filename.stripExtension))
) {
@@ -259,7 +259,7 @@ template PathMatters() {
}
string base_parent_dir_path() {
string _dir;
- if ( // TODO this should catch generated --source sisupod, untested, needs manifest
+ if (
auto m = (absolute_path_to_src)
.match(regex(r"[/](?P<dir>(?:[a-zA-Z0-9._-]+))/sisupod/" ~ filename.stripExtension))
) {
@@ -276,7 +276,7 @@ template PathMatters() {
.match(rgx.src_formalised_file_path_parts)
) {
_dir = asNormalizedPath(m.captures["pth"]).array;
- } else if ( // TODO this should catch generated --source sisupod, untested, needs manifest
+ } else if (
auto m = (absolute_path_to_src)
.match(regex(r"[/](?P<dir>(?:[a-zA-Z0-9._-]+))/sisupod/" ~ filename.stripExtension))
) {
@@ -322,7 +322,7 @@ template PathMatters() {
}
auto base_parent_dir() {
string _dir;
- if ( // TODO this should catch generated --source sisupod, untested, needs manifest
+ if (
auto m = (absolute_path_to_src)
.match(regex(r"[/](?P<dir>(?:[a-zA-Z0-9._-]+))/sisupod/" ~ filename.stripExtension))
) {