Skip to content

Commit 2e327b3

Browse files
committed
support card id start with Sim_
1 parent f988694 commit 2e327b3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CardQuery/MainWindow.xaml.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ private void ButtonCardId_Click(object sender, RoutedEventArgs e)
8181
return;
8282
}
8383

84+
var prefix = "Sim_";
85+
if (id.StartsWith(prefix))
86+
{
87+
id = id.Replace(prefix, string.Empty);
88+
}
89+
8490
if (!Cards.All.ContainsKey(id))
8591
{
8692
MessageBox.Show($"Can not find the card with id {id}");

0 commit comments

Comments
 (0)