projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
914c8b605c7f95ba9593be29673769784709cb45
[dotfiles/.git]
/
hasLessInterpolation.js
1
/* @flow */
2
"use strict";
3
4
/**
5
* Check whether a string has less interpolation
6
*
7
* @param {string} string
8
* @return {boolean} If `true`, a string has less interpolation
9
*/
10
module.exports = function(string /*: string*/) /*: boolean*/ {
11
if (/@{.+?}/.test(string)) {
12
return true;
13
}
14
15
return false;
16
};