isPricingRelevantConfigKey returns true if the config key affects pricing and should NOT be auto-filled with a dummy value.
(key string)
| 1431 | // isPricingRelevantConfigKey returns true if the config key affects pricing |
| 1432 | // and should NOT be auto-filled with a dummy value. |
| 1433 | func isPricingRelevantConfigKey(key string) bool { |
| 1434 | if pricingRelevantExact[key] { |
| 1435 | return true |
| 1436 | } |
| 1437 | lower := strings.ToLower(key) |
| 1438 | for _, suffix := range pricingRelevantSuffixes { |
| 1439 | if strings.HasSuffix(lower, strings.ToLower(suffix)) { |
| 1440 | return true |
| 1441 | } |
| 1442 | } |
| 1443 | return false |
| 1444 | } |
| 1445 | |
| 1446 | // dummyValueForConfigKey returns a reasonable dummy value for a non-pricing |
| 1447 | // config key. For keys that look like they expect a number, returns "1". |