1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 05:27:15 -04:00
notes/node_modules/stylelint/lib/utils/blurInterpolation.js

8 lines
238 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
/* @flow */
"use strict"
module.exports = function (source/*: string*/)/*: string*/ {
const blurChar/*: string*/ = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : " "
return source.replace(/[#@{}]+/g, blurChar)
}