[kaleidescape] Remove Apache StringEscapeUtils (#14513)

* Remove Apache StringEscapeUtils
* add tests

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This commit is contained in:
mlobstein
2023-03-26 07:26:51 -05:00
committed by GitHub
parent 6ef2dfb1db
commit ec329c456d
6 changed files with 96 additions and 11 deletions

View File

@@ -229,7 +229,9 @@ String z1_Detail_DiscLocation "Disc Location: [%s]" { channel="kaleidescape:play
ksecondsformat.js:
```javascript
(function(totalSeconds) {
(function(timestamp) {
var totalSeconds = Date.parse(timestamp) / 1000
if (isNaN(totalSeconds)) {
return '-';
} else {