1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 09:37:36 -04:00
notes/node_modules/stylelint/lib/utils/blurComments.js

8 lines
241 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)
}