We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad3141a commit c92e5baCopy full SHA for c92e5ba
backend/src/routes/api/disclose.rs
@@ -21,7 +21,9 @@ impl DiscloseServiceState {
21
22
fn load_kvp() -> HashMap<String, String> {
23
let content = std::fs::read_to_string(KVP_FILEPATH)
24
- .unwrap_or_else(|e| panic!("unable to read redacted terms from {KVP_FILEPATH}: {e}"));
+ .unwrap_or_else(|e| panic!("unable to read redacted terms from {KVP_FILEPATH}: {e}"))
25
+ .trim()
26
+ .to_owned();
27
let lines: Vec<String> = content.lines().map(|v| v.into()).collect();
28
let pairs: Vec<(String, String)> = lines
29
.iter()
0 commit comments