fix com>9 bug for detecting device

This commit is contained in:
0x10 2019-04-27 09:03:16 +08:00 committed by GitHub
parent ccfa0b5456
commit a4efd1f0f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,7 @@ namespace MifareOneTool
{
if (!string.IsNullOrEmpty(_e.Data))
{
Match m = Regex.Match(_e.Data, "pn532_uart:COM\\d:115200");
Match m = Regex.Match(_e.Data, "pn532_uart:COM\\d+:115200");
if (m.Success)
{
myReader.Add(m.Value);