mirror of
https://github.com/thangisme/notes.git
synced 2025-11-23 13:12:25 -05:00
Initial commit
This commit is contained in:
16
node_modules/stylelint/lib/utils/hasLessInterpolation.js
generated
vendored
Normal file
16
node_modules/stylelint/lib/utils/hasLessInterpolation.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/* @flow */
|
||||
"use strict"
|
||||
|
||||
/**
|
||||
* Check whether a string has less interpolation
|
||||
*
|
||||
* @param {string} string
|
||||
* @return {boolean} If `true`, a string has less interpolation
|
||||
*/
|
||||
module.exports = function (string/*: string*/)/*: boolean*/ {
|
||||
if (/@{.+?}/.test(string)) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user