mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 14:37:47 +00:00
Add TODO about underscore string functions
This commit is contained in:
parent
f658fab566
commit
9dbf3a21cf
@ -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')
|
||||
|
@ -23,6 +23,8 @@ exports.getDisplayName = (device) ->
|
||||
return key
|
||||
return 'Unknown'
|
||||
|
||||
# TODO: Use _.slugify
|
||||
|
||||
# Get device slug
|
||||
#
|
||||
# @param {String} device device name
|
||||
|
Loading…
Reference in New Issue
Block a user