projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
stylelint
/
lib
/
utils
/
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
};