Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hasEmptyLine.js 267B

1234567891011121314
  1. 'use strict';
  2. /**
  3. * Check if a string contains at least one empty line
  4. *
  5. * @param {string} string
  6. *
  7. * @returns {boolean}
  8. */
  9. module.exports = function (string) {
  10. if (string === '' || string === undefined) return false;
  11. return /\n[\r\t ]*\n/.test(string);
  12. };