From 49ca221bd19084373990df4a230cc425dea6b592 Mon Sep 17 00:00:00 2001 From: Assunta DeSanto Date: Mon, 18 Oct 2021 14:07:14 -0400 Subject: [PATCH] removing last character of pair name if . or _ --- .../src/components/Collections/PairedListCollectionCreator.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/components/Collections/PairedListCollectionCreator.vue b/client/src/components/Collections/PairedListCollectionCreator.vue index d50b696d8c5..f16445d7503 100644 --- a/client/src/components/Collections/PairedListCollectionCreator.vue +++ b/client/src/components/Collections/PairedListCollectionCreator.vue @@ -724,6 +724,9 @@ export default { revName = revName.replace(extension, ""); } } + if (lcs.substring(lcs.length-1) == "." || lcs.substring(lcs.length-1) == "_") { + lcs = lcs.substring(0,lcs.length-1) + } return lcs || `${fwdName} & ${revName}`; }, clickAutopair: function () {