Skip to content

Commit 393ef8c

Browse files
committed
Normalize pinned clipboard IDs without trimming braces
Previously, curly braces were removed from GUIDs before converting to lowercase when normalizing pinned clipboard item IDs. Now, IDs are only converted to lowercase, preserving any curly braces. This may affect how IDs are matched and stored.
1 parent ba265b3 commit 393ef8c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Flow.Launcher.Plugin.ClipboardPlus.Core/Helpers/WindowsClipboardHelper.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ private HashSet<string> GetPinnedClipboardItemIds()
144144
{
145145
foreach (var itemId in metadata.Items.Keys)
146146
{
147-
// Remove curly braces from GUID format (e.g., "{GUID}" -> "GUID")
148-
// and convert to lowercase to match ClipboardHistoryItem.Id format
149-
var normalizedId = itemId.Trim('{', '}').ToLower();
150-
pinnedIds.Add(normalizedId);
147+
// Convert to lowercase to match ClipboardHistoryItem.Id format
148+
pinnedIds.Add(itemId.ToLower());
151149
}
152150
}
153151
}

0 commit comments

Comments
 (0)