blob: 68f814c9751f5d191e776c7bb8dbb0635679198c [file] [log] [blame]
/**
* Check if a string is a single line (i.e. does not contain
* any newline characters).
*
* @param {string} input
* @returns {boolean}
*/
export default function isSingleLineString(input) {
return !/[\n\r]/.test(input);
}