projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c3747e7fd84dda6c3ece8dfde4c76943a8002363
[dotfiles/.git]
/
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
};