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:
1fa8c5e
)
New pp2filter implementation that uses visitTargets.
author
Mike Taylor
<mike@indexdata.com>
Wed, 23 Apr 2014 16:39:50 +0000
(17:39 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 23 Apr 2014 16:39:50 +0000
(17:39 +0100)
src/mkws-filter.js
patch
|
blob
|
history
diff --git
a/src/mkws-filter.js
b/src/mkws-filter.js
index
353fce5
..
02ce422
100644
(file)
--- a/
src/mkws-filter.js
+++ b/
src/mkws-filter.js
@@
-84,7
+84,19
@@
function filterSet(team) {
};
that.NEW_pp2filter = function() {
- return that.OLD_pp2filter();
+ var res = "";
+
+ that.visitTargets(function(id, name) {
+ if (res) res += ",";
+ if (id.match(/^[a-z:]+[=~]/)) {
+ m_team.log("filter '" + id + "' already begins with SETTING OP");
+ } else {
+ id = 'pz:id=' + id;
+ }
+ res += id;
+ });
+
+ return res;
};
that.pp2limit = function(initial) {