This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-01 22:46:04 +00:00

15 lines
267 B
JavaScript

'use strict';
/**
* Check if a string contains at least one empty line
*
* @param {string} string
*
* @returns {boolean}
*/
module.exports = function (string) {
if (string === '' || string === undefined) return false;
return /\n[\r\t ]*\n/.test(string);
};