Skip to content

Commit

Permalink
feat: Changed default value of linePrefix from "# " to ""
Browse files Browse the repository at this point in the history
Signed-off-by: Jaid <jaid.jsx@gmail.com>
  • Loading branch information
Jaid committed Mar 27, 2020
1 parent 8bc1949 commit 6fe56b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {isString} from "lodash"

const prependToLines = (string, linePrefix = "# ") => {
const prependToLines = (string, linePrefix = "") => {
if (isString(string)) {
return string.replace(/^(.*)$/gm, line => `${linePrefix}${line}`)
} else if (Array.isArray(string)) {
Expand Down

0 comments on commit 6fe56b7

Please sign in to comment.