Skip to content

Commit

Permalink
tools: remove redundant RegExp flag
Browse files Browse the repository at this point in the history
PR-URL: #20309
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed May 4, 2018
1 parent 9c11a18 commit ccf1b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/preprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
const fs = require('fs');

const includeExpr = /^@include\s+([\w-]+)(?:\.md)?$/gmi;
const commentExpr = /^@\/\/.*$/gmi;
const commentExpr = /^@\/\/.*$/gm;

function processIncludes(inputFile, input, cb) {
const includes = input.match(includeExpr);
Expand Down

0 comments on commit ccf1b24

Please sign in to comment.