projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6818463
)
New implementation of pp2limit method based on visitFields.
author
Mike Taylor
<mike@indexdata.com>
Wed, 23 Apr 2014 16:44:20 +0000
(17:44 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 23 Apr 2014 16:44:20 +0000
(17:44 +0100)
src/mkws-filter.js
patch
|
blob
|
history
diff --git
a/src/mkws-filter.js
b/src/mkws-filter.js
index
4d600cc
..
03e07e1
100644
(file)
--- a/
src/mkws-filter.js
+++ b/
src/mkws-filter.js
@@
-95,7
+95,13
@@
function filterSet(team) {
};
that.NEW_pp2limit = function(initial) {
- return that.OLD_pp2limit(initial);
+ var res = initial || "";
+
+ that.visitFields(function(field, value) {
+ if (res) res += ",";
+ res += field + "=" + value.replace(/[\\|,]/g, '\\$&');
+ });
+ return res;
}
return that;