Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kristerkari committed Nov 7, 2018
1 parent 830655f commit 10b4ef2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rules/double-slash-comment-empty-line-before/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ export default function(expectation, options, context) {
}

const fix = (comment, match, replace) => {
const escapedMatch = match.replace(
/(\r)?\n/g,
(_, r) => (r ? "\\r\\n" : "\\n")
const escapedMatch = match.replace(/(\r)?\n/g, (_, r) =>
r ? "\\r\\n" : "\\n"
);
comment.raws.before = comment.raws.before.replace(
new RegExp(`^${escapedMatch}`),
Expand Down

0 comments on commit 10b4ef2

Please sign in to comment.