[Pcsclite-git-commit] [website] 01/01: Reader selection: try to add "0x" before values
Ludovic Rousseau
rousseau at moszumanska.debian.org
Mon Jul 4 17:02:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository website.
commit dcab991a31c14715dc2360181f6a08ec126b36b4
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Mon Jul 4 18:59:49 2016 +0200
Reader selection: try to add "0x" before values
For the "any" filter we also try to convert a value by prepending "0x".
So you can use "0c4b" instead of "0x0c4b" and get the same retult.
---
select_readers/js/main.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/select_readers/js/main.js b/select_readers/js/main.js
index beb1a6a..f75dac4 100644
--- a/select_readers/js/main.js
+++ b/select_readers/js/main.js
@@ -134,6 +134,9 @@ function match(filters, reader) {
value2 = parseInt(value, 16);
} else {
value2 = parseInt(value, 10);
+ if (value2 === 0) {
+ value2 = parseInt("0x" + value, 16);
+ }
}
if (isNaN(value2)) {
value2 = value;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/website.git
More information about the Pcsclite-cvs-commit
mailing list