aboutsummaryrefslogtreecommitdiff
path: root/libbutl/project-name.mxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-22 11:41:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-22 11:41:03 +0300
commit1d876b1360a9be46570360beb0bd8138557ff0da (patch)
treeb8bc50e53b0cb3b084b77b97a7268122b564281b /libbutl/project-name.mxx
parent20615c2161fb491e4c87b0cc8483c2e600ae6f79 (diff)
Make use of sanitize_identifier()
Diffstat (limited to 'libbutl/project-name.mxx')
-rw-r--r--libbutl/project-name.mxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbutl/project-name.mxx b/libbutl/project-name.mxx
index 65ba2ba..5f5a586 100644
--- a/libbutl/project-name.mxx
+++ b/libbutl/project-name.mxx
@@ -22,7 +22,7 @@ export module butl.project_name;
import std.core;
import std.io;
#endif
-import butl.utility; // casecmp()
+import butl.utility; // casecmp(), sanitize_identifier()
#else
#include <libbutl/utility.mxx>
#endif
@@ -93,7 +93,7 @@ LIBBUTL_MODEXPORT namespace butl
// '.', '-', and '+' are replaced with '_'.
//
std::string
- variable () const;
+ variable () const {return sanitize_identifier (value_);}
// Compare ignoring case. Note that a string is not checked to be a valid
// project name.