hasEmptyLine.js 327 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports["default"] = _default;
  6. /**
  7. * Check if a string contains at least one empty line
  8. *
  9. * @param {string} string
  10. * @return {boolean}
  11. */
  12. function _default(string) {
  13. return string && (string.includes("\n\n") || string.includes("\n\r\n"));
  14. }