Skip to content

Commit 1e227f3

Browse files
author
Markus Fleschutz
committed
Update list-weather.ps1
1 parent 16983fb commit 1e227f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/list-weather.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
param([string]$Location = "") # empty means determine automatically
2020

21-
function GetDescription { param([string]$Text)
22-
switch($Text) {
21+
function GetDescription { param([string]$text)
22+
switch ($text.trim()) {
2323
"Blizzard" { return "❄️ blizzard ⚠️" }
2424
"Blowing snow" { return "❄️ blowing snow ⚠️" }
2525
"Clear" { return "🌙 clear" }
@@ -52,6 +52,7 @@ function GetDescription { param([string]$Text)
5252
"Patchy light snow" { return "❄️ patchy light snow" }
5353
"Patchy moderate snow" { return "❄️ patchy moderate snow" }
5454
"Patchy rain possible" { return "💧 patchy rain possible" }
55+
"Patchy rain nearby" { return "💧 patchy rain nearby" }
5556
"Patchy snow possible" { return "❄️ patchy snow possible" }
5657
"Sunny" { return "☀️ sunny" }
5758
"Thundery outbreaks possible" { return "⚡️thundery outbreaks possible" }

0 commit comments

Comments
 (0)