AutomatedTester / automation-services-bot

IRC bot to help out in Automation Services Channel on irc.mozilla.org
http://automatedtester.github.com/automation-services-bot
3 stars 14 forks source link

No detection of bugs if id doesn't have 6 digits #11

Closed whimboo closed 12 years ago

whimboo commented 12 years ago

The regex for detecting bug requests is wrong. Currently it wants to have 6 digits:

bugID = /bug (\d{6})/i.exec(message)[1];

It should be replaced by:

bugID = /bug (\d+)/i.exec(message)[1];

AutomatedTester commented 12 years ago

fixed in https://github.com/AutomatedTester/automation-services-bot/commit/d8b4abc15c1643691f06a92db6338a5347a98161