From e7b2dae50d2b2887e3ce07180f4f7fbd10bfceec Mon Sep 17 00:00:00 2001 From: ge Date: Tue, 24 Dec 2024 08:59:22 +0300 Subject: [PATCH] example: enable case insensitivity --- cmd/dataunit.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dataunit.v b/cmd/dataunit.v index 8770f3a..f9103e1 100644 --- a/cmd/dataunit.v +++ b/cmd/dataunit.v @@ -70,11 +70,11 @@ fn main() { eprintln('no value passed, see -help for info') exit(2) } - src := dataunits.from_string(flags.from) or { + src := dataunits.from_string(flags.from, ci: true) or { eprintln('invalid source unit: ${err}') exit(1) } - dst := dataunits.from_string(flags.to) or { + dst := dataunits.from_string(flags.to, ci: true) or { eprintln('invalid destination unit: ${err}') exit(1) }