From 4dc53f4cf7afe73ba7c2e7ade352c1be0781599f Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 2 Jan 2023 16:24:29 +0100 Subject: [PATCH] Update what-is.ps1 --- Data/Abbr/{IATA-airport-codes.csv => IATA_airport_codes.csv} | 0 Data/Abbr/{ICAO-airport-codes.csv => ICAO_airport_codes.csv} | 0 ...{ICD-10-diagnosis-codes.csv => ICD-10_diagnosis_codes.csv} | 0 Data/Abbr/{ISO-country-codes.csv => ISO_country_codes.csv} | 0 Data/Abbr/{ISO-currency-codes.csv => ISO_currency_codes.csv} | 0 Data/Abbr/{ISO-language-codes.csv => ISO_language_codes.csv} | 0 Data/Abbr/{SI-prefixes.csv => SI_prefixes.csv} | 0 Scripts/what-is.ps1 | 4 ++-- 8 files changed, 2 insertions(+), 2 deletions(-) rename Data/Abbr/{IATA-airport-codes.csv => IATA_airport_codes.csv} (100%) rename Data/Abbr/{ICAO-airport-codes.csv => ICAO_airport_codes.csv} (100%) rename Data/Abbr/{ICD-10-diagnosis-codes.csv => ICD-10_diagnosis_codes.csv} (100%) rename Data/Abbr/{ISO-country-codes.csv => ISO_country_codes.csv} (100%) rename Data/Abbr/{ISO-currency-codes.csv => ISO_currency_codes.csv} (100%) rename Data/Abbr/{ISO-language-codes.csv => ISO_language_codes.csv} (100%) rename Data/Abbr/{SI-prefixes.csv => SI_prefixes.csv} (100%) diff --git a/Data/Abbr/IATA-airport-codes.csv b/Data/Abbr/IATA_airport_codes.csv similarity index 100% rename from Data/Abbr/IATA-airport-codes.csv rename to Data/Abbr/IATA_airport_codes.csv diff --git a/Data/Abbr/ICAO-airport-codes.csv b/Data/Abbr/ICAO_airport_codes.csv similarity index 100% rename from Data/Abbr/ICAO-airport-codes.csv rename to Data/Abbr/ICAO_airport_codes.csv diff --git a/Data/Abbr/ICD-10-diagnosis-codes.csv b/Data/Abbr/ICD-10_diagnosis_codes.csv similarity index 100% rename from Data/Abbr/ICD-10-diagnosis-codes.csv rename to Data/Abbr/ICD-10_diagnosis_codes.csv diff --git a/Data/Abbr/ISO-country-codes.csv b/Data/Abbr/ISO_country_codes.csv similarity index 100% rename from Data/Abbr/ISO-country-codes.csv rename to Data/Abbr/ISO_country_codes.csv diff --git a/Data/Abbr/ISO-currency-codes.csv b/Data/Abbr/ISO_currency_codes.csv similarity index 100% rename from Data/Abbr/ISO-currency-codes.csv rename to Data/Abbr/ISO_currency_codes.csv diff --git a/Data/Abbr/ISO-language-codes.csv b/Data/Abbr/ISO_language_codes.csv similarity index 100% rename from Data/Abbr/ISO-language-codes.csv rename to Data/Abbr/ISO_language_codes.csv diff --git a/Data/Abbr/SI-prefixes.csv b/Data/Abbr/SI_prefixes.csv similarity index 100% rename from Data/Abbr/SI-prefixes.csv rename to Data/Abbr/SI_prefixes.csv diff --git a/Scripts/what-is.ps1 b/Scripts/what-is.ps1 index 7fa5e369..e5414e60 100755 --- a/Scripts/what-is.ps1 +++ b/Scripts/what-is.ps1 @@ -24,8 +24,8 @@ try { $Table = Import-CSV "$File" foreach($Row in $Table) { if ($Row.Abbr -eq $abbr) { - $Basename = (Get-Item "$File").Basename - "🔎 In $Basename '$($Row.Abbr)' may refer to: $($Row.Term)" + $Basename = (Get-Item "$File").Basename -Replace "_"," " + "🔎 $($Row.Abbr) may refer to $($Row.Term) in $Basename." $Missing = $false } }