Skip to content

Commit

Permalink
🐛 bug fix on update memo
Browse files Browse the repository at this point in the history
  • Loading branch information
athiththan11 committed Oct 22, 2020
1 parent 4bea1bd commit c5a4f62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,15 @@ function removeZincMemo(key, workingDir) {
* @returns {string} memo content
*/
function populateMemoMD(obj) {
var memoContent = memo
var temp = memo;
console.dir(obj);
var memoContent = temp
.replace('{number}', Date.now())
.replace('{title}', obj.title)
.replace('{desc}', obj.desc)
.replace('{source}', _.isEmpty(obj.source) ? '' : `[${obj.source}](${obj.source})`)
.replace('{keys}', obj.keys);
if (obj.isCodeAvailable) {
if (obj.isCodeAvailable || obj.updateExistingCode) {
memoContent = memoContent
.replace('(isCodeAvailable){```', '\n```')
.replace('```}', '\n```\n')
Expand Down

0 comments on commit c5a4f62

Please sign in to comment.