Skip to content

Commit

Permalink
fix(executions): allow filtering on pipelines with commas in name (#3674
Browse files Browse the repository at this point in the history
)
  • Loading branch information
anotherchrisberry authored and Justin Reynolds committed May 12, 2017
1 parent c3ceb46 commit 797970a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scripts/modules/core/navigation/state.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ export const trueKeyObjectParamType = {
decode: (val: string) => {
if (val) {
const r: any = {};
val.split(',').forEach(k => r[k] = true);
val.split(',').map(k => k.replace(/%2c/g, ',')).forEach(k => r[k] = true);
return r;
}
return {};
},
encode: (val: any) => {
if (val) {
const r = Object.keys(val).filter(k => val[k]);
return r.length ? r.sort().join(',') : null;
return r.length ? r.sort().map(k => k.replace(/,/g, '%2c')).join(',') : null;
}
return null;
},
Expand Down

0 comments on commit 797970a

Please sign in to comment.