luci-mod-system: fix parsing SSH pubkeys with options
authorJo-Philipp Wich <jo@mein.io>
Wed, 23 Dec 2020 14:31:58 +0000 (15:31 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 23 Dec 2020 14:33:08 +0000 (15:33 +0100)
commit846b89c5bf07100f9bf1e46bcac55acab5535e26
treeaf7e048cd830b14aa73bdcd93f79b022f5ba96a4
parentaf20ec8e0724e755bf6c476572ba31016ddd209a
luci-mod-system: fix parsing SSH pubkeys with options

Also eliminate some duplicate code while we're at it.

Fixes: #4684
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js