@@ -206,19 +206,24 @@ jobs:
206206 const bIncWordT = words.some( s => s.includes( iss_title_lc ) || iss_title_lc.includes( s ) );
207207
208208 /*
209- found searched word "for help"
210- append / prepare message for bot to send
209+ Find regex based phrases
210+
211+ Regex:
212+ https://regex101.com/r/Z99Gnq/2
211213 */
212214
213- const findWordList = /(?:I?\s*have\s*(?:a|an)\s*(?:issue|problem|bug))|(?:will\s*not\s*work)|(?:it\s*is\s*(?:broken|broke|stuck))|(?:found\s*(?:an?|the)\s*(?:bug|issue))|(?:can\s*I\s*fix\s*the\s*(?:bug|issue))|(?:(?:does not|doesn'?t|don'?t|won'?t|can'?t|can\s?not|will\s*not)\s*(?:work|load|function))|(?:it\s*(?:will\s?not|won'?t|can\s?not|can'?t))\s*get\s*the\s*(?:website|site|webpage|page)|(?:the\s*(?:window|frame)\s*is\s*(?:blank|white|empty|missing))/igm;
215+ const findWordList = /^\b (?:I?\s*have\s*(?:a|an)\s*(?:issue|problem|bug))|(?:will\s*not\s*work)|(?:it\s*is\s*(?:broken|broke|stuck))|(?:found\s*(?:an?|the)\s*(?:bug|issue))|(?:can\s*I\s*fix\s*the\s*(?:bug|issue))|(?:(?:does not|doesn'?t|don'?t|won'?t|can'?t|can\s?not|will\s*not)\s*(?:work|load|function))|(?:it\s*(?:will\s?not|won'?t|can\s?not|can'?t))\s*(?: get|find) \s*the\s*(?:website|site|webpage|page)|(?:the\s*(?:window|frame)\s*is\s*(?:blank|white|empty|missing))\b$ /igm;
214216 const bFoundMatchTitle = Boolean( findWordList.test( iss_title ) );
215217 const bFoundMatchBody = Boolean( findWordList.test( iss_body ) );
216218
217219 /*
218220 Do not change a title if the item starts with a PR: #
221+
222+ Regex:
223+ https://regex101.com/r/JOrqbN/1
219224 */
220225
221- const bug_findPRTitle = /^PR\s(?:[0-9]*:? )/igm;
226+ const bug_findPRTitle = /^PR\s?#? (?:[0-9]*:)/igm;
222227 const bug_bFoundPRTitle = Boolean( bug_findPRTitle.test( iss_title ) );
223228
224229 console.log( "Title Lowercase ............... " + iss_title_lc )
@@ -325,17 +330,23 @@ jobs:
325330
326331 /*
327332 Find regex based phrases
333+
334+ Regex:
335+ https://regex101.com/r/fR1Hm6/1
328336 */
329337
330- const findWordList = /(?:(?:request|include|see)\s*(?:a ?|the?)\s*(?:feature|addon|addition|plugin))|(?:(?:add|see|get)\s*support\s*(?:for|with|of))/igm;
338+ const findWordList = /^ (?:(?:request|include|see)\s*(?:an ?|the?)\s*(?:feature|addon|addition|plugin))|(?:(?:add|see|get)\s*support\s*(?:for|with|of))|(?:can\s*we\s*get\s*(?:the|a)\s*(?:ability|feature))|(?:💡 Feature:)$ /igm;
331339 const bFoundMatchTitle = Boolean( findWordList.test( iss_title ) );
332340 const bFoundMatchBody = Boolean( findWordList.test( iss_body ) );
333341
334342 /*
335343 Do not change a title if the item starts with a PR: #
344+
345+ Regex:
346+ https://regex101.com/r/JOrqbN/1
336347 */
337348
338- const feat_findPRTitle = /^PR\s(?:[0-9]*:? )/igm;
349+ const feat_findPRTitle = /^PR\s?#? (?:[0-9]*:)/igm;
339350 const feat_bFoundPRTitle = Boolean( feat_findPRTitle.test( iss_title ) );
340351
341352 console.log( "Title Lowercase ............... " + iss_title_lc )
@@ -445,17 +456,23 @@ jobs:
445456
446457 /*
447458 Find regex based phrases
459+
460+ Regex:
461+ https://regex101.com/r/eE9tJX/2
448462 */
449463
450- const findWordList = /\b (?:(?:this)?is\s*a?n?\s*?(?:emergency|urgent|important|vital|acute|crucial|grave|pressing|serious|top.?priority|high.?priority))|(?:reply|respond|answer|write|address)\s*(?:immediate|quick|asap|urgent|now|fast|(?:as)?\s*(?:soon|quick|immediate|fast))(?:ly)?|(?:need\s*(?:help|support|fixed|answer|reply|response)!)|(?:emergency|critical|urgen(?:t|cy)|high.?priority)\b /igm;
464+ const findWordList = /(?:(?:this)?is\s*a?n?\s*?(?:emergency|urgent|important|vital|acute|crucial|grave|pressing|serious|top.?priority|high.?priority))|(?:reply|respond|answer|write|address)\s*(?:immediate|quick|asap|urgent|now|fast|(?:as)?\s*(?:soon|quick|immediate|fast))(?:ly)?|(?:need\s*(?:help|support|fixed|answer|reply|response)!)|(?:emergency|critical|urgen(?:t|cy)|high.?priority)/igm;
451465 const bFoundMatchTitle = Boolean( findWordList.test( iss_title ) );
452466 const bFoundMatchBody = Boolean( findWordList.test( iss_body ) );
453467
454468 /*
455469 Do not change a title if the item starts with a PR: #
470+
471+ Regex:
472+ https://regex101.com/r/JOrqbN/1
456473 */
457474
458- const urgn_findPRTitle = /^PR\s(?:[0-9]*:? )/igm;
475+ const urgn_findPRTitle = /^PR\s?#? (?:[0-9]*:)/igm;
459476 const urgn_bFoundPRTitle = Boolean( urgn_findPRTitle.test( iss_title ) );
460477
461478 console.log( "Title Lowercase ............... " + iss_title_lc )
@@ -566,6 +583,10 @@ jobs:
566583
567584 /*
568585 Find regex based phrases
586+ Roadmap requires headers #Summary and #Proposal | #Objective
587+
588+ Regex:
589+ https://regex101.com/r/ucajBZ/1
569590 */
570591
571592 const findWordList = /#\s*Summary[\S\s]+#\s*(?:Proposal|Objective)[^\]]+/igm;
@@ -574,9 +595,12 @@ jobs:
574595
575596 /*
576597 Do not change a title if the item starts with a PR: #
598+
599+ Regex:
600+ https://regex101.com/r/JOrqbN/1
577601 */
578602
579- const road_findPRTitle = /^PR\s(?:[0-9]*:? )/igm;
603+ const road_findPRTitle = /^PR\s?#? (?:[0-9]*:)/igm;
580604 const road_bFoundPRTitle = Boolean( road_findPRTitle.test( iss_title ) );
581605
582606 console.log( "Title Lowercase ............... " + iss_title_lc )
0 commit comments