Finished up with implementing media link embeds in chat.
This commit is contained in:
parent
23df4f88f9
commit
1ce2fc3c22
4 changed files with 89 additions and 39 deletions
|
|
@ -39,6 +39,8 @@ class commandPreprocessor{
|
|||
}
|
||||
|
||||
processLinks(){
|
||||
//Strip out file seperators in-case the user is being a smart-ass
|
||||
this.message = this.message.replaceAll('␜','');
|
||||
//Split message by links
|
||||
var splitMessage = this.message.split(/(https?:\/\/[^\s]+)/g);
|
||||
//Create an empty array to hold links
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue