diff --git a/templates/whoisdb/create_js.html b/templates/whoisdb/create_js.html
index 44f2006..67f4a58 100644
--- a/templates/whoisdb/create_js.html
+++ b/templates/whoisdb/create_js.html
@@ -41,7 +41,7 @@ function findPrefix(size, step) {
var parentRangeOpt = $('#id_'+ef+'parent_range option:selected');
if(parentRangeOpt.val()) {
var prefixLen = null;
- var m = netInpText.match("([0-9.:]+/)?(\\d+)");
+ var m = netInpText.match("([0-9a-f.:]+/)?(\\d+)");
console.log(prefixLen)
console.log(netInpText);
if(m) {