.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / utils / hasEmptyLine.js
1 /* @flow */
2 "use strict";
3
4 /**
5  * Check if a string contains at least one empty line
6  */
7 module.exports = function(string /*:: ?: string*/) /*: boolean*/ {
8   if (string === "" || string === undefined) return false;
9
10   return /\n[\r\t ]*\n/.test(string);
11 };