OpenBSD code style

This commit is contained in:
Jeremy Baxter 2023-09-24 16:11:20 +13:00
parent c21ab033ee
commit ca36b7fb90
2 changed files with 26 additions and 13 deletions

9
esv.d
View file

@ -206,7 +206,8 @@ key = %s
esv.extraParameters = iniData["api"].getKey("parameters");
string returnValid(string def, string val)
string
returnValid(string def, string val)
{
return val == "" ? def : val;
}
@ -275,12 +276,14 @@ key = %s
return true;
}
private string extractOpt(in GetOptException e) @safe
private string
extractOpt(in GetOptException e) @safe
{
return e.msg.matchFirst("-.")[0];
}
private string parseBook(in string book) @safe
private string
parseBook(in string book) @safe
{
return book.replaceAll(regex("[-_]"), " ");
}