Skip to content

Commit

Permalink
Trim whitespaces at start/end of track/artist strings
Browse files Browse the repository at this point in the history
  • Loading branch information
berkon committed Aug 7, 2021
1 parent d67e09f commit 797214f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] = ""
Expand Down

0 comments on commit 797214f

Please sign in to comment.