mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 05:37:16 -04:00
8 lines
238 B
JavaScript
8 lines
238 B
JavaScript
|
/* @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)
|
||
|
}
|