mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 01:27:31 -04:00
1 line
551 B
JavaScript
1 line
551 B
JavaScript
"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"]; |