Skip to content

Commit

Permalink
fix(check-indentation): fix code style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwayakchih authored and golopot committed Oct 2, 2019
1 parent d7aa4e8 commit 41af93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/checkIndentation.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import iterateJsdoc from '../iterateJsdoc';

const maskExamples = (str, excludeTags) => {
const regExamples = new RegExp(`([ \\t]+\\*)[ \\t]@(?:${excludeTags.join('|')})(?=[ \\n])([\\w|\\W]*?\\n)(?=[ \\t]*\\*(?:[ \\t]*@|\\/))`,'g');
const regExamples = new RegExp(`([ \\t]+\\*)[ \\t]@(?:${excludeTags.join('|')})(?=[ \\n])([\\w|\\W]*?\\n)(?=[ \\t]*\\*(?:[ \\t]*@|\\/))`, 'g');

return str.replace(regExamples, (match, margin, code) => {
return (new Array(code.match(/\n/g).length + 1)).join(margin + '\n');
Expand Down

0 comments on commit 41af93c

Please sign in to comment.