Browse Source

array regex

master
calexil 2 years ago
parent
commit
655ff120d7
2 changed files with 3 additions and 1 deletions
  1. 1
    1
      bot.js
  2. 2
    0
      bot.js~

+ 1
- 1
bot.js View File

@@ -21,7 +21,7 @@ const responseObject = {
"commands": "You can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md"
};

string.replace(s/best g\(ir|ri|ur\)ll?\?, 'Big Band.');
console.log("best girll?".replace(/best g(ir|ri|ur)ll?/gi, "Big Band."));

// Call the web page with express
app.use(express.static('public'));

+ 2
- 0
bot.js~ View File

@@ -21,6 +21,8 @@ const responseObject = {
"commands": "You can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md"
};

string.replace(s/best g\(ir|ri|ur\)ll?\?, 'Big Band.');

// Call the web page with express
app.use(express.static('public'));
app.use(bodyParser.json());

Loading…
Cancel
Save