mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 17:07:49 +00:00
small code adjustment
This commit is contained in:
parent
fd376c3009
commit
4c8d81372a
2
inxi
2
inxi
|
@ -8168,7 +8168,7 @@ get_weather_data()
|
|||
# some lines might be empty, so ignore those
|
||||
if (data !~ /^<[^>]+>$/ ) {
|
||||
returnData=gensub(/(.*>)([^<]*)(<.*)/, "\\2", 1, data)
|
||||
gsub(/^[[:space:]]+|[[:space:]]+$|NA|N\/A/, "", returnData)
|
||||
gsub(/^[[:space:]]+|[[:space:]]+$|^NA$|^N\/A$/, "", returnData)
|
||||
}
|
||||
return returnData
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue