Add Access Tokens base.

This commit is contained in:
Gunther Brunner
2014-09-30 17:45:29 +09:00
parent dd1efb7e49
commit 54ad605592
20 changed files with 236 additions and 126 deletions

View File

@@ -0,0 +1,12 @@
module.exports = function AdbKeysServiceFactory() {
var service = {}
service.hostNameFromKey = function (key) {
if (key.match(/.+= (.+)/)) {
return key.replace(/.+= (.+)/g, '$1').replace(/(\.local)?/g, '')
}
return ''
}
return service
}