1234567891011121314151617 |
- 'use strict';
- module.exports = function getImportantPosition(source) {
- const pattern = /!\s*important\b/gi;
- const match = pattern.exec(source);
- if (!match) return;
- return { index: match.index, endIndex: pattern.lastIndex };
- };
|