Commit 430f06d7898e5850d1c1eaac6802a6fe97590c4f
Allow underscores in domains formatted
cel committed on 4/15/2017, 3:11:17 AMParent: fa361cb674ff7b6f3f3ea7e954eba90abcef26d4
Files changed
lib/format.js | changed |
lib/format.js | |||
---|---|---|---|
@@ -14,9 +14,9 @@ | |||
14 | 14 … | record.name = record.name.replace(/\.?$/, '.'); | |
15 | 15 … | }; | |
16 | 16 … | } | |
17 | 17 … | // make records' names be relative to some domain | |
18 | - if (/[^a-z0-9\-.]/.test(name)) { | ||
18 … | + if (/[^a-z0-9\-._]/.test(name)) { | ||
19 | 19 … | throw new TypeError('name has bad characters'); | |
20 | 20 … | } | |
21 | 21 … | var nameRegexp = new RegExp('(?:^|\\.)' + name.replace(/\./g, '\\.') + '$'); | |
22 | 22 … | return function (record) { | |
Built with git-ssb-web