UNPKG

285 BJavaScriptView Raw
1/**
2 * Check whether a string has less interpolation
3 *
4 * @param {string} string
5 * @return {boolean} If `true`, a string has less interpolation
6 */
7module.exports = function (string /*: string */) /*: boolean */ {
8 if (/@{.+?}/.test(string)) {
9 return true
10 }
11
12 return false
13}