Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
crotel authored Mar 17, 2020
1 parent 96fead9 commit 675fcc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@
return [year, month, day].join('-');
}
var publishTime = formatDate(json.posts[i].published_at);
var filterUrl = /((www\.)?[a-zA-Z0-9_]{1,}(\-)?[a-zA-Z0-9_]{1,}\.[a-z]{2,}\b([a-zA-Z0-9@:%_\+.~#?&//=]*)|(www\.)?[a-zA-Z0-9_]{1,}\.[a-z]{2,}\b([a-zA-Z0-9@:%_\+.~#?&//=]*))/g;
var preRLB1 = json.posts[i].plaintext.replace(/\?+\?/g, '<span class="todo"></span>');
var preRLB2 = preRLB1.replace(/\++\+/g, '<span class="update"></span>');
var preRLB3 = preRLB2.replace(/\!+\!/g, '<span class="attention"></span>');
var replaceLineBreak = preRLB3.replace(/\n+\n/g, '<br><br>');
var getTitleUrl = new RegExp(/((www\.)?[a-zA-Z0-9_]{1,}(\-)?[a-zA-Z0-9_]{1,}\.[a-z]{2,}\b([a-zA-Z0-9@:%_\+.~#?&//=]*)|(www\.)?[a-zA-Z0-9_]{1,}\.[a-z]{2,}\b([a-zA-Z0-9@:%_\+.~#?&//=]*))/g);
var getTitleUrl = new RegExp(filterUrl);
var plaintext, titleUrl;
function gUrl(){
var r = replaceLineBreak
Expand Down

0 comments on commit 675fcc5

Please sign in to comment.