|
|
@@ -4,12 +4,11 @@ if(!$response){
|
|
|
return
|
|
|
}
|
|
|
let html = $response.body || '';
|
|
|
-let regex = /<a class="tgme_action_button_new shine" href="([\S]+)">([^<]+)<\/a>/;
|
|
|
-
|
|
|
console.log("###tglinks###");
|
|
|
-console.log(html)
|
|
|
-// let regex = /<div class="tgme_page_action">\s*<a class="tgme_action_button_new shine" href="([\S]+)">([^<]+)<\/a>\s*<\/div>/;
|
|
|
-// let matches = html.match(regex);
|
|
|
+let regex = /<div class="tgme_page_action">\s*<a class="tgme_action_button_new shine" href="([\S]+)">([^<]+)<\/a>\s*<\/div>/;
|
|
|
+let matches = html.match(regex);
|
|
|
+console.log(JSON.stringify(matches));
|
|
|
+
|
|
|
// if (matches) {
|
|
|
// let allContent = matches[0];
|
|
|
// let originalHref = matches[1];
|