From 797214fb0702e072affc0a33497f38b980c10961 Mon Sep 17 00:00:00 2001 From: Bernd Konnerth Date: Sat, 7 Aug 2021 09:41:08 +0200 Subject: [PATCH] Trim whitespaces at start/end of track/artist strings --- js/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/renderer.js b/js/renderer.js index 4c23b3b..3d2af93 100644 --- a/js/renderer.js +++ b/js/renderer.js @@ -239,7 +239,7 @@ angular.module('track_suggestor').controller('suggestor', function ($rootScope, } } else { // Found stop marker if ( startMarker !== stopMarker ) { // Found valid string - let tmpStr = line_static_str_SHADOW[line_idx].substr ( startIdx, strLength ) + let tmpStr = line_static_str_SHADOW[line_idx].substr ( startIdx, strLength ).trim() if ( tmpStr === line_static_str[line_idx] ) { line_static_str_SHADOW[line_idx] = ""