fix RE used to match minified names - they can include $

change botguard-related group names to match stock site change
This commit is contained in:
Jon Atkins 2015-01-30 00:45:08 +00:00
parent 9f9609f7e9
commit b784da3b0f
2 changed files with 3 additions and 3 deletions

View File

@ -144,9 +144,9 @@ iitc_bg.get_method_group = function(method) {
//}
if (window.niantic_params.botguard_group_a_methods.indexOf(method) != -1) {
return "group-a-actions";
return "ingress-a-actions";
} else {
return "group-b-actions";
return "ingress-b-actions";
}
};

View File

@ -12,7 +12,7 @@ window.extractFromStock = function() {
// we also extract all top-level arrays of strings, for botguard
var arrays = [];
var minified = new RegExp('^[a-zA-Z][a-zA-Z0-9]$');
var minified = new RegExp('^[a-zA-Z$][a-zA-Z$0-9]$');
for (var topLevel in window) {
if (minified.test(topLevel)) {