luci-app-vnstat: Fix blank graphs for iface names with underscores
authorMichael Marley <michael@michaelmarley.com>
Sun, 12 Jul 2015 15:38:40 +0000 (11:38 -0400)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 10 Aug 2015 07:37:23 +0000 (09:37 +0200)
commitc595f3095bd53e458984e410e24bf4d81a976aea
tree734216fe9e4fd1616928c8336a9225b25d12f86c
parent3a7d738e2776e2ddaf6c127dbd9e2b90a77181d8
luci-app-vnstat: Fix blank graphs for iface names with underscores

The regex used to process the iface query string argument in
vnstat.htm was stripping underscores, which caused the graph not to
display for interfaces with names containing underscores.  This
patch adds the underscore to that regex so that the interface name
will be correct and the graph will be displayed.

Signed-off-by: Michael Marley <michael@michaelmarley.com>
applications/luci-app-vnstat/luasrc/view/vnstat.htm