mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: Proper variable naming for font variation
This commit is contained in:
committed by
Nathan Walker
parent
8726d026fe
commit
6968997d9d
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user