Fix terminology used in code
This commit is contained in:
parent
1f130347d5
commit
4a63bc577e
|
@ -501,8 +501,8 @@ exports.getModule = class GopherModule extends ServerModule {
|
||||||
|
|
||||||
// filters |areas| down to what |includes| matches
|
// filters |areas| down to what |includes| matches
|
||||||
areas = _.filter(areas, (area, areaTag) => {
|
areas = _.filter(areas, (area, areaTag) => {
|
||||||
for (let needle of confConfig.include) {
|
for (let rule of confConfig.include) {
|
||||||
if (wildcardMatch(areaTag, needle)) {
|
if (wildcardMatch(areaTag, rule)) {
|
||||||
area.areaTag = areaTag;
|
area.areaTag = areaTag;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -513,8 +513,8 @@ exports.getModule = class GopherModule extends ServerModule {
|
||||||
// now filter out any excludes, if present
|
// now filter out any excludes, if present
|
||||||
if (Array.isArray(confConfig.exclude)) {
|
if (Array.isArray(confConfig.exclude)) {
|
||||||
areas = _.filter(areas, area => {
|
areas = _.filter(areas, area => {
|
||||||
for (let needle of confConfig.exclude) {
|
for (let rule of confConfig.exclude) {
|
||||||
if (wildcardMatch(area.areaTag, needle)) {
|
if (wildcardMatch(area.areaTag, rule)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue