fixed regex
This commit is contained in:
parent
3d7fa83e78
commit
7237899e77
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ const getOEmbedData = (req, res) => {
|
|||
'([^:/?#]+:\/\/)'+
|
||||
'([^/?#]*)' +
|
||||
'(\/)' +
|
||||
'([^?#]*)' +
|
||||
'([^/?#]*)' +
|
||||
'(\/)' +
|
||||
'([^?#]*)'
|
||||
'([^/?#]*)'
|
||||
);
|
||||
const [proto, protocol, domain, slashOne, paramOne, slashTwo, paramTwo] = componentsRegex
|
||||
.exec(url)
|
||||
|
|
Loading…
Reference in a new issue