Allow spaces in device ID. Parse xsd:int values.
This commit is contained in:
1 parent
49e689f7e9
commit
88c506299c
3 files changed
+15
-10
No files matched your search
+2
-2
@@ -25,9 +25,9 @@ exports.arrayToHash = (arr) ->
|
||||
exports.getDeviceId = (deviceIdStruct) ->
|
||||
# Guaranteeing globally unique id as defined in TR-069
|
||||
if deviceIdStruct['ProductClass']
|
||||
return "#{escape(deviceIdStruct['OUI'])}-#{escape(deviceIdStruct['ProductClass'])}-#{escape(deviceIdStruct['SerialNumber'])}"
|
||||
return "#{deviceIdStruct['OUI']}-#{deviceIdStruct['ProductClass']}-#{deviceIdStruct['SerialNumber']}"
|
||||
|
||||
return "#{escape(deviceIdStruct['OUI'])}-#{escape(deviceIdStruct['SerialNumber'])}"
|
||||
return "#{deviceIdStruct['OUI']}-#{deviceIdStruct['SerialNumber']}"
|
||||
|
||||
|
||||
exports.extend = (obj, mixin) ->
|
||||
|
||||
Reference in new issue
Block a user