projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f8b42e5a456933547c01fa31bbbfae3067ef4cea
[dotfiles/.git]
/
blurComments.js
1
/* @flow */
2
"use strict";
3
module.exports = function(source /*: string*/) /*: string*/ {
4
const blurChar /*: string*/ =
5
arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "`";
6
7
return source.replace(/\/\*.*\*\//g, blurChar);
8
};