Prevent all parameters overflow

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2018-12-27 01:21:18 -08:00
1 parent 3e455d6cbc
commit 11902fefd1
4 files changed
+58 -21

No files matched your search

+7 -1
View File
@@ -3,6 +3,7 @@
import m from "mithril";
import * as components from "../components";
import * as taskQueue from "../task-queue";
import longTextComponent from "../long-text-component";
function escapeRegExp(str) {
return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
@@ -101,7 +102,12 @@ const component = {
)
);
return m("tr", attrs, m("td.left", k), m("td.right", val));
return m(
"tr",
attrs,
m("td.left", m(longTextComponent, { text: k })),
m("td.right", val)
);
});
return m(