Skip to content

Commit 73bb560

Browse files
authored
Percentages: Fix showing of correct values (#243)
* Percentages: Fix showing of correct values * Add percentunit to spellcheck words
1 parent 527339c commit 73bb560

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cspell.config.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
2-
"ignorePaths": ["node_modules/**", "pkg/googlesheets/testdata", "dist/**", "mage_output_file.go"],
2+
"ignorePaths": [
3+
"node_modules/**",
4+
"pkg/googlesheets/testdata",
5+
"dist/**",
6+
"mage_output_file.go"
7+
],
38
"words": [
49
"araddon",
510
"dataproxy",
@@ -15,6 +20,7 @@
1520
"instancemgmt",
1621
"Middlewares",
1722
"patrickmn",
23+
"percentunit",
1824
"raintank",
1925
"Sdump",
2026
"stackdriver",

pkg/googlesheets/columndefinition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (cd *ColumnDefinition) checkUnit(cellData *sheets.CellData) {
133133
}
134134
}
135135
case "PERCENT":
136-
cd.units["percent"] = true
136+
cd.units["percentunit"] = true
137137
case "CURRENCY":
138138
for unit, unitID := range unitMappings {
139139
if strings.Contains(cellData.FormattedValue, unit) {

0 commit comments

Comments
 (0)