Skip to content

Commit

Permalink
labels: escape filename dots in regexps
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex authored and phillipj committed Dec 8, 2016
1 parent 562587a commit 88551a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/node-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const subSystemLabelsMap = new Map([
[/^\w+\.md$/, 'doc'],
// different variants of *Makefile and build files
[/^(tools\/)?(Makefile|BSDmakefile|create_android_makefiles)$/, 'build'],
[/^tools\/(install.py|genv8constants.py|getnodeversion.py|js2c.py|utils.py|configure.d\/.*)$/, 'build'],
[/^(configure|node.gyp|common.gypi|vcbuild.bat)$/, 'build'],
[/^tools\/(install\.py|genv8constants\.py|getnodeversion\.py|js2c\.py|utils\.py|configure\.d\/.*)$/, 'build'],
[/^(configure|node\.gyp|common\.gypi|vcbuild\.bat)$/, 'build'],
// all other tools/ changes should be marked as such
[/^tools\//, 'tools'],

Expand Down Expand Up @@ -52,7 +52,7 @@ const exclusiveLabelsMap = new Map([
// specific map for modules.md as it should be labeled 'module' not 'modules'
[/^doc\/api\/modules.md$/, ['doc', 'module']],
// automatically tag subsystem-specific API doc changes
[/^doc\/api\/(\w+).md$/, ['doc', '$1']],
[/^doc\/api\/(\w+)\.md$/, ['doc', '$1']],
[/^doc\//, 'doc'],
[/^benchmark\//, 'benchmark']
])
Expand Down

0 comments on commit 88551a6

Please sign in to comment.