diff --git a/src/pages/content/settings.php b/src/pages/content/settings.php
index 297bd42..ee7cb5e 100644
--- a/src/pages/content/settings.php
+++ b/src/pages/content/settings.php
@@ -951,7 +951,8 @@ function addVolumeToExclude(element) {
         $path = $(element).text();
         $excludeTextarea = $('#' + $(element).data('container') + '_exclude');
 
-        if ($excludeTextarea.val().indexOf($path) !== -1) { // If existing inside textarea
+        if ($excludeTextarea.val().split(/\r?\n|\r|\n/g).includes($path)) { // If existing inside textarea
+            console.debug("Not adding this volume to exclusion: already listed!")
             return;
         }
 
@@ -1012,9 +1013,8 @@ function checkVolumesForDuplicates() {
         $("code[data-container]").each(function () {
             let container = $(this).data('container');
             let mapping = $(this).text();
-            if ($('#' + container + '_exclude').val().indexOf(mapping) !== -1) {
-                console.debug(container, mapping, 'is excluded so ignored');
-            } else if (volumeMatrix.includes(mapping)) {
+
+            if (volumeMatrix.includes(mapping)) {
                 affectedMappings.push(mapping);
             } else {
                 volumeMatrix.push($(this).text());