0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-27 07:23:09 +00:00

add support for function values

This commit is contained in:
Charlie Humphreys
2023-07-15 00:58:37 -05:00
parent 4c087e9aa5
commit e6055bd417
3 changed files with 3 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ module.exports = function(widgets, cm, setHints) {
add(spec.mediaFeatures);
}
result = result.map((h)=>({ hint: h, type: HINT_TYPE.VALUE }))
.filter((h)=>CSS.supports(field.name, h.hint));
.filter((h)=>CSS.supports(field.name, h.hint) && h.hint.includes(value ?? ''));
const numberSuffix = word.slice(-4).replaceAll(/\d/g, '');
if(token.type === 'number' && !UNITS.includes(numberSuffix)) {