mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-28 08:02:16 +08:00
11 lines
297 B
JavaScript
11 lines
297 B
JavaScript
const HAS_LESS_INTERPOLATION = /@\{.+?\}/;
|
|
|
|
/**
|
|
* Check whether a string has less interpolation
|
|
*
|
|
* @param {string} string
|
|
* @returns {boolean} If `true`, a string has less interpolation
|
|
*/
|
|
export default function hasLessInterpolation(string) {
|
|
return HAS_LESS_INTERPOLATION.test(string);
|
|
}
|