From d0cf6df8b576500f39611df583b99563bc7262d6 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 18 Oct 2023 17:22:03 +0200 Subject: [PATCH] Update what-is.ps1 --- Data/Abbr/general.csv | 1 + Scripts/what-is.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Data/Abbr/general.csv b/Data/Abbr/general.csv index eeb07b0a..41ec99fb 100644 --- a/Data/Abbr/general.csv +++ b/Data/Abbr/general.csv @@ -1,4 +1,5 @@ ABBR,MEANING +e.g.,"'exempli gratia' in Latin, meaning: 'for example'" 0D,obvious deed 1AM,Air Mechanic 1st Class 1D,One-Dimensional diff --git a/Scripts/what-is.ps1 b/Scripts/what-is.ps1 index acc722f0..b9caf617 100755 --- a/Scripts/what-is.ps1 +++ b/Scripts/what-is.ps1 @@ -7,7 +7,7 @@ Specifies the abbreviation to query .EXAMPLE PS> ./what-is VTOL - 💡 VTOL in aviation refers to: Vertical Take-Off and Landing + 💡 VTOL in aviation refers to Vertical Take-Off and Landing .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -25,7 +25,7 @@ try { foreach($row in $table) { if ($row.ABBR -ne $abbr) { continue } $basename = (Get-Item "$file").Basename -Replace "_"," " - "💡 $($row.ABBR) in $basename refers to: $($row.MEANING)" + "💡 $($row.ABBR) in $basename refers to $($row.MEANING)" } } if ($basename -eq "") { "🤷‍ Sorry, no entry '$abbr' in my database (located at .../Data/Abbr/)." }