Simplify regex
This commit is contained in:
parent
456d3aae3c
commit
c470b12f30
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module.exports = {
|
||||||
reloadCommands(client)
|
reloadCommands(client)
|
||||||
let sendText = `${stdout}\nBot updated, and\n${calculateReloaded(beforeSize, client)}`
|
let sendText = `${stdout}\nBot updated, and\n${calculateReloaded(beforeSize, client)}`
|
||||||
message.channel.send(sendText).then(function(msg){
|
message.channel.send(sendText).then(function(msg){
|
||||||
let regex = /(.{0,7}\.\........)/
|
let regex = /(.{0,7}\.\..{0,7})/
|
||||||
let commits = stdout.match(regex)[0]
|
let commits = stdout.match(regex)[0]
|
||||||
cmd = `git log --oneline ${commits}`;
|
cmd = `git log --oneline ${commits}`;
|
||||||
exec(cmd, (err, stdout, stderr) =>{
|
exec(cmd, (err, stdout, stderr) =>{
|
||||||
|
|
Loading…
Add table
Reference in a new issue