epiphany/node_modules/stylelint/lib/utils/isSingleLineString.js
2023-12-09 22:48:07 -08:00

12 lines
249 B
JavaScript

'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 isSingleLineString(input) {
return !/[\n\r]/.test(input);
};