UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

11 lines (10 loc) 232 B
/** * 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); }