securityos/node_modules/stylelint/lib/utils/isSingleLineString.js

13 lines
249 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'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);
};