aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path-regex.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-23 11:47:20 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-23 11:47:20 -0500
commitc67e0cc58c5a74121d74a3f5cf9f9c2199a87093 (patch)
tree79454c245dbb0330b619bc653332077f04d3100b /src/libstore/path-regex.hh
parentb3d91239ae9f21a60057b278ceeff663fb786246 (diff)
parent9b56683398de777219627c96be75c0195e630cb7 (diff)
Merge remote-tracking branch 'upstream/master' into path-info
Diffstat (limited to 'src/libstore/path-regex.hh')
-rw-r--r--src/libstore/path-regex.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/path-regex.hh b/src/libstore/path-regex.hh
new file mode 100644
index 000000000..6893c3876
--- /dev/null
+++ b/src/libstore/path-regex.hh
@@ -0,0 +1,7 @@
+#pragma once
+
+namespace nix {
+
+static constexpr std::string_view nameRegexStr = R"([0-9a-zA-Z\+\-\._\?=]+)";
+
+}