commit | 2a74ed892e8a8d44eb2fb85c54a285e4a93242eb | [log] [tgz] |
---|---|---|
author | Wentao Shang <wentaoshang@gmail.com> | Fri Jul 26 20:00:49 2013 -0700 |
committer | Wentao Shang <wentaoshang@gmail.com> | Fri Jul 26 20:00:49 2013 -0700 |
tree | 36716d077c8a941e0da61270087a04168850c978 | |
parent | bc0d326ad09d491e006828b30d8c4e9ccda63ba6 [diff] [blame] |
Fix bug in CSTable lookup.
diff --git a/js/NDN.js b/js/NDN.js index a6cbd32..f6d51a2 100644 --- a/js/NDN.js +++ b/js/NDN.js
@@ -136,7 +136,7 @@ function getEntryForRegisteredPrefix(name) { for (var i = 0; i < NDN.CSTable.length; i++) { - if (NDN.CSTable[i].name.match(name) != null) + if (NDN.CSTable[i].name.match(name)) return NDN.CSTable[i]; } return null;