git ssb


9+

ansuz / dnssb



Commit 430f06d7898e5850d1c1eaac6802a6fe97590c4f

Allow underscores in domains formatted

cel committed on 4/14/2017, 8:11:17 PM
Parent: fa361cb674ff7b6f3f3ea7e954eba90abcef26d4

Files changed

lib/format.jschanged
lib/format.jsView
@@ -14,9 +14,9 @@
1414 record.name = record.name.replace(/\.?$/, '.');
1515 };
1616 }
1717 // make records' names be relative to some domain
18- if (/[^a-z0-9\-.]/.test(name)) {
18+ if (/[^a-z0-9\-._]/.test(name)) {
1919 throw new TypeError('name has bad characters');
2020 }
2121 var nameRegexp = new RegExp('(?:^|\\.)' + name.replace(/\./g, '\\.') + '$');
2222 return function (record) {

Built with git-ssb-web