1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 03:27:29 -04:00
notes/node_modules/postcss-less/dist/find-extend-rule.min.js

1 line
551 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
"use strict";function findExtendRule(e){for(var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],d=[],r=e.length,n=t;n<r;){var u=e[n];if(extendRuleKeyWords.indexOf(u[1])>=0)d.push(u[1]);else if("space"!==u[0])break;n++}for(var l=0;l<extendRuleKeyWordsCount;l++)if(d[l]!==extendRuleKeyWords[l])return null;return e.slice(t,n)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=findExtendRule;var extendRuleKeyWords=["&",":","extend"],extendRuleKeyWordsCount=extendRuleKeyWords.length;module.exports=exports["default"];