You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
'use strict'; |
|
|
|
/** |
|
* Check whether a string has JS template literal interpolation or HTML-like template |
|
* |
|
* @param {string} string |
|
* @return {boolean} If `true`, a string has template literal interpolation |
|
*/ |
|
module.exports = function (string) { |
|
return /{.+?}/.test(string); |
|
};
|
|
|