File tree 1 file changed +6
-3
lines changed
webcompat/static/js/lib/models
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 104
104
return ;
105
105
}
106
106
107
- // for each label in labels array
108
- // filter over each repoLabel in repoLabelsArray
107
+ // Reconstruct the namespaced labels by comparing the "new" labels
108
+ // against the original namespaced labels from the repo.
109
+ //
110
+ // for each label in the labels array
111
+ // filter over each repoLabel in the repoLabelsArray
109
112
// if a regex from namespaceRegex + label matches against repoLabel
110
- // return that (and flatten the result because it's now an array of 3 arrays)
113
+ // return that (and flatten the result because it's now an array of N arrays)
111
114
var labelsToUpdate = _ . flatten ( _ . map ( labelsArray , function ( label ) {
112
115
return _ . filter ( repoLabelsArray , function ( repoLabel ) {
113
116
if ( new RegExp ( namespaceRegex + label + '$' , 'i' ) . test ( repoLabel ) ) {
You can’t perform that action at this time.
0 commit comments