tools: remove redundant RegExp flag

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Vse Mozhet Byt 2018-04-26 02:28:08 +03:00
parent dc8676c129
commit e2fa5a7e04

View File

@ -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);