UNPKG

stylelint

Version:

A mighty, modern CSS linter.

10 lines (7 loc) 248 B
/* @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); };