mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-22 12:05: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 {
|
} else {
|
||||||
format!("/usr/share/zoneinfo/{}", {
|
format!("/usr/share/zoneinfo/{}", {
|
||||||
if file.starts_with(':') {
|
if file.starts_with(':') {
|
||||||
file.replacen(":", "", 1)
|
file.replacen(':', "", 1)
|
||||||
} else {
|
} else {
|
||||||
file
|
file
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user