Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhaedsa committed May 14, 2020
1 parent a2c7237 commit f69dd3c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22783,7 +22783,7 @@ const th = tag("th");
const b = tag("b");
const table = tag("table");
const tbody = tag("tbody");
const a = tag("a");
const span = tag("span");

const fragment = function(...children) {
return children.join("")
Expand Down Expand Up @@ -22841,11 +22841,10 @@ function toRow(file, indent, options) {

function filename(file, indent, options) {
const relative = file.file.replace(options.prefix, "");
const href = `https://github.com/${options.repository}/blob/${options.commit}/${relative}`;
const parts = relative.split("/");
const last = parts[parts.length - 1];
const space = indent ? "   " : "";
return fragment(space, a({ href }, last))
return fragment(space, span(last))
}

function percentage$1(item) {
Expand Down Expand Up @@ -22875,8 +22874,7 @@ function uncovered(file, options) {
return all
.map(function(line) {
const relative = file.file.replace(options.prefix, "");
const href = `https://github.com/${options.repository}/blob/${options.commit}/${relative}#L${line}`;
return a({ href }, line)
return span(line)
})
.join(", ")
}
Expand Down

0 comments on commit f69dd3c

Please sign in to comment.