fix regex

This commit is contained in:
Flummi 2018-09-02 18:06:02 +02:00
parent 5fe6240d7e
commit 58ca2fed61

View File

@ -14,7 +14,7 @@ const flags = {
4: "nsfl",
8: "nsfp"
};
const regex = /(img|vid)\.pr0gramm\.com\/((?:\d+){4}\/(?:\d+){2}\/(?:\d+){2}\/(?:\w{0,20})\.(?:webm|png|jpg|mp4|webm)?)/gi;
const regex = /(img|vid)\.pr0gramm\.com\/((?:\d+){4}\/(?:\d+){2}(\/(?:\d+){2})?\/(?:\w{1,20})\.(?:webm|png|jpg|mp4|webm)?)/gi;
const site = "https://pr0gramm.com/new/";
export default bot => {