enforced ASCII validation on '--map' flag

This commit is contained in:
djaidjai committed 2023-02-08 22:09:18 +01:00
1 parent 2b9817080e
commit 529b6a61e2
2 files changed
+7 -1

No files matched your search

+7
View File
@@ -92,6 +92,13 @@ impl Cli {
exit(1);
}
}
if let Some(map) = self.map.clone() {
if !map.is_ascii() {
error!("map can not contain non-ASCII characters!");
exit(1);
}
}
}
pub fn init(&self) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.