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