User:Guywan/Scripts/12HourFormat.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 57:
{
var time = text.substr(index - 2, 5);
console.log(time);
// Will convert anything in the table matching the pattern "nn:nn," where n is a digit.
if(time.match(/\d\d:\d\d\,/))
{
text = partition(text);
Line 87 ⟶ 88:
$(this).html(regexpReplace(html));
//var time = partition($(this).text());
//$(this).text(time[0] + time[1] + time[2]);
});
}