blob: 7e41ca4c6d8b0f569566f1e7443993bda6ff66ff [file] [log] [blame]
/* @flow */
"use strict";
/**
* Check if a string is a single line (i.e. does not contain
* any newline characters).
*
* @param {string} input
* @return {boolean}
*/
module.exports = function(input /*: string*/) /*: boolean*/ {
return !/[\n\r]/.test(input);
};