diff --git a/client/src/components/Collections/PairedListCollectionCreator.vue b/client/src/components/Collections/PairedListCollectionCreator.vue index 8fee2dc0f3d..32d21b05b30 100644 --- a/client/src/components/Collections/PairedListCollectionCreator.vue +++ b/client/src/components/Collections/PairedListCollectionCreator.vue @@ -724,7 +724,7 @@ export default { revName = revName.replace(extension, ""); } } - if (lcs.substring(lcs.length - 1) == "." || lcs.substring(lcs.length - 1) == "_") { + if (lcs.endsWith(".") || lcs.endsWith("_")) { lcs = lcs.substring(0, lcs.length - 1); } return lcs || `${fwdName} & ${revName}`;