fixed regex

This commit is contained in:
bill bittner 2018-07-30 10:02:08 -07:00
parent 3d7fa83e78
commit 7237899e77

View file

@ -13,9 +13,9 @@ const getOEmbedData = (req, res) => {
'([^:/?#]+:\/\/)'+
'([^/?#]*)' +
'(\/)' +
'([^?#]*)' +
'([^/?#]*)' +
'(\/)' +
'([^?#]*)'
'([^/?#]*)'
);
const [proto, protocol, domain, slashOne, paramOne, slashTwo, paramTwo] = componentsRegex
.exec(url)