You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not positive the regex string is even correct however I tested it with the following javascript:
var str = "http://mimgnews1.naver.net/image/origin/433/2017/05/29/30734.jpg?type=wc318_q90";
var patt = new RegExp("^https?://mimgnews[1-2]{1}.naver.net/image/origin/[0-9]{3}/[0-9]{4}/[0-9]{2}/[0-9]{2}/[A-Za-z0-9._~%-]+.jpg\\?type=[a-zA-Z0-9_]+");
var res = patt.test(str);
The script returned a 'true' result which as far as I know indicates the regex pattern is a match, but the plugin does not work as intended. After opening the webpage I'm trying to rip with DTA, I can see the image links but the thumbnail ?type suffixes have not been removed as seen here:
This is all pretty new to me and I'm not sure what I'm doing wrong. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I'm trying to modify the following naver plugin to work with an alternate subdomain of naver.net:
The subdomain looks like this:
The url I'm trying to redirect to would be:
I don't know anything about regex or javascript but this was the best I could come up with:
Ideally I would like the plugin to work for both types of links but for testing I'm only using the first type (http://mimgnews1.naver.net/image/origin/433/2017/05/29/30734.jpg?type=wc318_q90).
I'm not positive the regex string is even correct however I tested it with the following javascript:
The script returned a 'true' result which as far as I know indicates the regex pattern is a match, but the plugin does not work as intended. After opening the webpage I'm trying to rip with DTA, I can see the image links but the thumbnail ?type suffixes have not been removed as seen here:
This is all pretty new to me and I'm not sure what I'm doing wrong. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: