mirror of
https://github.com/thangisme/notes.git
synced 2026-07-31 06:10:39 -04:00
Initial commit
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
/* @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
|
||||
}
|
||||
Reference in New Issue
Block a user