1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-04 20:07:17 -05:00
notes/node_modules/stylelint/lib/utils/hasEmptyLine.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

11 lines
288 B
JavaScript

/* @flow */
"use strict"
/**
* Check if a string contains at least one empty line
*/
module.exports = function (string/*:: ?: string*/)/*: boolean*/ {
if (string === "" || string === undefined) return false
return string.indexOf("\n\n") !== -1 || string.indexOf("\n\r\n") !== -1
}