mirror of
https://github.com/thangisme/notes.git
synced 2025-11-23 13:12:25 -05:00
Initial commit
This commit is contained in:
10
node_modules/stylelint/lib/utils/hasEmptyLine.js
generated
vendored
Normal file
10
node_modules/stylelint/lib/utils/hasEmptyLine.js
generated
vendored
Normal file
@@ -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