UNPKG

@stylistic/stylelint-plugin

Version:
11 lines (10 loc) 225 B
/** * Check if a string is a single line (i.e. does not contain * any newline characters). * * @param {string} input * @return {boolean} */ export function isSingleLineString (input) { return !(/[\n\r]/).test(input) }