mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-21 19:45:11 +00:00
Use single char pattern for better performance
This commit is contained in:
parent
433a9a52d3
commit
d24ca084a3
@ -347,7 +347,7 @@ fn determine_time_zone() -> TZResult<TimeZone> {
|
||||
} else {
|
||||
format!("/usr/share/zoneinfo/{}", {
|
||||
if file.starts_with(':') {
|
||||
file.replacen(":", "", 1)
|
||||
file.replacen(':', "", 1)
|
||||
} else {
|
||||
file
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user