first commit
This commit is contained in:
19
node_modules/stylelint/lib/utils/hasEmptyLine.cjs
generated
vendored
Normal file
19
node_modules/stylelint/lib/utils/hasEmptyLine.cjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// NOTICE: This file is generated by Rollup. To modify it,
|
||||
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
||||
'use strict';
|
||||
|
||||
const HAS_EMPTY_LINE = /\n[\r\t ]*\n/;
|
||||
|
||||
/**
|
||||
* Check if a string contains at least one empty line
|
||||
*
|
||||
* @param {string | undefined} string
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function hasEmptyLine(string) {
|
||||
if (string === '' || string === undefined) return false;
|
||||
|
||||
return HAS_EMPTY_LINE.test(string);
|
||||
}
|
||||
|
||||
module.exports = hasEmptyLine;
|
||||
Reference in New Issue
Block a user