Welcome to mirror list, hosted at ThFree Co, Russian Federation.

isSingleLineString.js « utils « dist « stylelint-scss « node_modules « assets - github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8bc344e0e067aac2b1419190d8e29a8ba3b82e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = _default;

/**
 * Check if a string is a single line (i.e. does not contain
 * any newline characters).
 *
 * @param {string} input
 * @return {boolean}
 */
function _default(input) {
  return !/[\n\r]/.test(input);
}