mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 05:27:15 -04:00
15 lines
265 B
JavaScript
15 lines
265 B
JavaScript
|
/* @flow */
|
||
|
"use strict"
|
||
|
|
||
|
/**
|
||
|
* Check whether a media feature name is standard
|
||
|
*/
|
||
|
module.exports = function (mediaFeatureName/*: string*/)/*: boolean*/ {
|
||
|
// SCSS interpolation
|
||
|
if (/#{.+?}|\$.+?/.test(mediaFeatureName)) {
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
return true
|
||
|
}
|