View Single Post
  #1525  
Old 26.08.2020, 06:46
DeusExBestia DeusExBestia is offline
Vacuum Cleaner
 
Join Date: Feb 2018
Posts: 17
Thumbs up

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Rewrite URL
    Trigger: New Crawler Job
*/

var re = /(https:\/\/twitter.com\/[^\/]+\/)(status\/\d+)/g;
var text = job.text;

if (re.test(text)) {
    job.text = job.text.replace(re, "$1media");
}
Ahhhhhhhhhh! Perfect! Thank you :D
Reply With Quote