update triggerRegex

This commit is contained in:
Philipp Kunz 2016-06-02 19:35:16 +02:00
parent 1159a9ab5c
commit 6b82f8385c

View File

@ -9,7 +9,7 @@ let triggerEnvPrefix = "NPMCI_TRIGGER_";
export let trigger = function(){ export let trigger = function(){
let done = plugins.q.defer(); let done = plugins.q.defer();
plugins.beautylog.info("now running triggers"); plugins.beautylog.info("now running triggers");
let triggerRegex = /^([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|?([a-zA-Z0-9\.]*)/; let triggerRegex = /^([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|([a-zA-Z0-9\.]*)\|?([a-zA-Z0-9\.\-\/]*)/;
for(let i = 0; i < 100; i++){ for(let i = 0; i < 100; i++){
let iteratorString = i.toString(); let iteratorString = i.toString();
let triggerName = triggerEnvPrefix + iteratorString let triggerName = triggerEnvPrefix + iteratorString