diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-03 09:16:30 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-04 08:45:22 +0100 |
commit | 0b67aeebc1c50f3a0ba61c6b1fcc0272071d87f8 (patch) | |
tree | d6bacb15cb3703054e58a0f29eaf547785b1cf23 /src/config/util.rs | |
parent | 5b4617aec92fc0f7666162e3a2b8080f87f0258c (diff) |
Add strict script interpolation
This patch adds strict script interpolation, which means that the script
interpolation will result in an error if a variable is referenced that
does not exist.
Before this patch, referencing an absent variable did result in an empty
string, possibly resulting in an error at runtime.
This feature is on by default.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/config/util.rs')
-rw-r--r-- | src/config/util.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/util.rs b/src/config/util.rs index 60709e2..ce3836a 100644 --- a/src/config/util.rs +++ b/src/config/util.rs @@ -12,3 +12,7 @@ pub fn default_package_print_format() -> String { "#)) } +pub fn default_strict_script_interpolation() -> bool { + true +} + |