|
From: <lu...@us...> - 2014-01-14 13:02:00
|
Revision: 617
http://sourceforge.net/p/pyscard/code/617
Author: ludov
Date: 2014-01-14 13:01:53 +0000 (Tue, 14 Jan 2014)
Log Message:
-----------
Match only the complete RE
Extra characters after the regular expression are no more ignored.
3B A7 00 40 .. 80 65 A2 08 .. .. ..
will match
3B A7 00 40 18 80 65 A2 08 01 01 52
but not
3B A7 00 40 18 80 65 A2 08 01 01 52 00
Modified Paths:
--------------
trunk/contrib/parseATR/parseATR.py
Modified: trunk/contrib/parseATR/parseATR.py
===================================================================
--- trunk/contrib/parseATR/parseATR.py 2013-12-20 09:22:08 UTC (rev 616)
+++ trunk/contrib/parseATR/parseATR.py 2014-01-14 13:01:53 UTC (rev 617)
@@ -880,7 +880,7 @@
# does the ATR in the file uses a RE?
if re_match.search(line):
# use the RE engine (slow)
- found = re.match(line, atr)
+ found = re.match(line + "$", atr)
else:
# use string compare (fast)
found = line == atr
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|