first commit
This commit is contained in:
13
node_modules/stylelint/lib/utils/hasEmptyLine.mjs
generated
vendored
Normal file
13
node_modules/stylelint/lib/utils/hasEmptyLine.mjs
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
const HAS_EMPTY_LINE = /\n[\r\t ]*\n/;
|
||||
|
||||
/**
|
||||
* Check if a string contains at least one empty line
|
||||
*
|
||||
* @param {string | undefined} string
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export default function hasEmptyLine(string) {
|
||||
if (string === '' || string === undefined) return false;
|
||||
|
||||
return HAS_EMPTY_LINE.test(string);
|
||||
}
|
||||
Reference in New Issue
Block a user