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.

isSingleLineString.js 231B

123456789101112
  1. 'use strict';
  2. /**
  3. * Check if a string is a single line (i.e. does not contain
  4. * any newline characters).
  5. *
  6. * @param {string} input
  7. * @return {boolean}
  8. */
  9. module.exports = function (input) {
  10. return !/[\n\r]/.test(input);
  11. };