mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-22 06:57:48 +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')
|
_ = require('lodash')
|
||||||
resin = require('../resin')
|
resin = require('../resin')
|
||||||
|
|
||||||
|
# TODO: Use _.chop from underscore.string
|
||||||
exports.formatLongString = (string, n) ->
|
exports.formatLongString = (string, n) ->
|
||||||
return string if not n?
|
return string if not n?
|
||||||
splitRegexp = new RegExp(".{1,#{n}}", 'g')
|
splitRegexp = new RegExp(".{1,#{n}}", 'g')
|
||||||
|
@ -23,6 +23,8 @@ exports.getDisplayName = (device) ->
|
|||||||
return key
|
return key
|
||||||
return 'Unknown'
|
return 'Unknown'
|
||||||
|
|
||||||
|
# TODO: Use _.slugify
|
||||||
|
|
||||||
# Get device slug
|
# Get device slug
|
||||||
#
|
#
|
||||||
# @param {String} device device name
|
# @param {String} device device name
|
||||||
|
Loading…
Reference in New Issue
Block a user