projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7e41ca4c6d8b0f569566f1e7443993bda6ff66ff
[dotfiles/.git]
/
isSingleLineString.js
1
/* @flow */
2
"use strict";
3
4
/**
5
* Check if a string is a single line (i.e. does not contain
6
* any newline characters).
7
*
8
* @param {string} input
9
* @return {boolean}
10
*/
11
module.exports = function(input /*: string*/) /*: boolean*/ {
12
return !/[\n\r]/.test(input);
13
};