Fix the text example

This commit is contained in:
yflory
2017-05-17 15:48:09 +02:00
parent fe0f21594a
commit 6b7aeb9121
2 changed files with 10 additions and 4 deletions

View File

@@ -113,12 +113,13 @@ Version 1
return ret;
}
var hash = href.replace(patt, function (a, domain, type) {
href.replace(patt, function (a, domain, type) {
ret.domain = domain;
ret.type = type;
return '';
});
ret.hash = hash.replace(/#/g, '');
var idx = href.indexOf('/#');
ret.hash = href.slice(idx + 2);
ret.hashData = parseTypeHash(ret.type, ret.hash);
return ret;
};