chore: Proper variable naming for font variation

This commit is contained in:
Dimitris - Rafail Katsampas
2025-01-25 23:32:16 +02:00
committed by Nathan Walker
parent 8726d026fe
commit 6968997d9d
2 changed files with 3 additions and 3 deletions

View File

@@ -83,10 +83,10 @@ export namespace FontVariationSettings {
return null;
}
const allowedValues = ['normal', 'inherit', 'initial', 'revert', 'revert-layer', 'unset'];
const excluded = ['normal', 'inherit', 'initial', 'revert', 'revert-layer', 'unset'];
const variationSettingsValue: string = fontVariationSettings.trim();
if (allowedValues.indexOf(variationSettingsValue.toLowerCase()) !== -1) {
if (excluded.indexOf(variationSettingsValue.toLowerCase()) !== -1) {
return null;
}