git ssb

15+

ansuz / dnssb



Commit c24fdc18c3deb086c2ba4086840b4abf85b6376c

Allow publishing records not under .ssb

cel committed on 11/24/2016, 5:28:30 AM
Parent: ff8d8e85cff4c592274edcb6b2b9ba68e330e024

Files changed

lib/publish.jschanged
lib/publish.jsView
@@ -18,14 +18,9 @@
1818 var isValidClass = Publish.isValidClass = function (c) {
1919 return CLASSES.indexOf(c) !== -1;
2020 };
2121
22-var endsInSSB = Publish.endsInSSB = function (s) {
23- return /(^|\.)ssb$/i.test(s);
24-};
25-
2622 var validateRecord = Publish.validateRecord = function (record) {
27- if (!endsInSSB(record.name)) { return "[Record NameError] records must end in .ssb"; }
2823 if (!isValidType(record.type)) { return "[Record TypeError] " + record.type + " is not a valid dns type"; }
2924 if (!isValidClass(record.class)) { return "[Record ClassError] class must be one of [" + CLASSES.join(', ') + "]"; }
3025
3126 // TODO perform stricter validation on data

Built with git-ssb-web