.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / utils / isKeyframeSelector.js
1 /* @flow */
2 "use strict";
3
4 const keywordSets = require("../reference/keywordSets");
5
6 /**
7  * Check whether a string is a keyframe selector.
8  */
9 module.exports = function(selector /*: string*/) /*: boolean*/ {
10   if (keywordSets.keyframeSelectorKeywords.has(selector)) {
11     return true;
12   }
13
14   // Percentages
15   if (/^(?:\d+\.?\d*|\d*\.?\d+)%$/.test(selector)) {
16     return true;
17   }
18
19   return false;
20 };