mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 03:07:18 +02:00
Support using attributes with either '-' or '_'
This commit is contained in:
parent
d7a50ce8dc
commit
f56a2388d1
1 changed files with 2 additions and 0 deletions
|
@ -269,6 +269,8 @@ impl TConfig {
|
|||
for line in data.split('\n') {
|
||||
if line.starts_with(config) {
|
||||
return line.trim_start_matches(config).trim_start().trim_end().to_string();
|
||||
} else if line.starts_with(&config.replace('-', "_")) {
|
||||
return line.trim_start_matches(&config.replace('-', "_")).trim_start().trim_end().to_string();
|
||||
}
|
||||
}
|
||||
"".to_string()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue