From 88551a6ce8aca5debb6c5d8ecf507207f3555fa2 Mon Sep 17 00:00:00 2001 From: Brian White Date: Wed, 7 Dec 2016 17:57:16 -0500 Subject: [PATCH] labels: escape filename dots in regexps --- lib/node-labels.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node-labels.js b/lib/node-labels.js index 5d9cf1e8..af27f7fa 100644 --- a/lib/node-labels.js +++ b/lib/node-labels.js @@ -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'], @@ -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'] ])