Add TODO about underscore string functions

This commit is contained in:
Juan Cruz Viotti 2014-12-09 12:00:53 -04:00
parent f658fab566
commit 9dbf3a21cf
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ url = require('url')
_ = require('lodash')
resin = require('../resin')
# TODO: Use _.chop from underscore.string
exports.formatLongString = (string, n) ->
return string if not n?
splitRegexp = new RegExp(".{1,#{n}}", 'g')

View File

@ -23,6 +23,8 @@ exports.getDisplayName = (device) ->
return key
return 'Unknown'
# TODO: Use _.slugify
# Get device slug
#
# @param {String} device device name