Browse Source

moved libpostal lower in sanitizers to after sources

pull/912/head
Stephen Hess 8 years ago
parent
commit
ac7f5c445c
  1. 2
      sanitizer/search.js
  2. 6
      test/unit/sanitizer/search.js

2
sanitizer/search.js

@ -6,8 +6,6 @@ module.exports.middleware = (_api_pelias_config) => {
singleScalarParameters: require('../sanitizer/_single_scalar_parameters'), singleScalarParameters: require('../sanitizer/_single_scalar_parameters'),
quattroshapes_deprecation: require('../sanitizer/_deprecate_quattroshapes'), quattroshapes_deprecation: require('../sanitizer/_deprecate_quattroshapes'),
text: require('../sanitizer/_text'), text: require('../sanitizer/_text'),
iso2_to_iso3: require('../sanitizer/_iso2_to_iso3'),
city_name_standardizer: require('../sanitizer/_city_name_standardizer'),
size: require('../sanitizer/_size')(/* use defaults*/), size: require('../sanitizer/_size')(/* use defaults*/),
layers: require('../sanitizer/_targets')('layers', type_mapping.layer_mapping), layers: require('../sanitizer/_targets')('layers', type_mapping.layer_mapping),
sources: require('../sanitizer/_targets')('sources', type_mapping.source_mapping), sources: require('../sanitizer/_targets')('sources', type_mapping.source_mapping),

6
test/unit/sanitizer/search.js

@ -104,9 +104,6 @@ module.exports.tests.sanitize = (test, common) => {
const expected_sanitizers = [ const expected_sanitizers = [
'_single_scalar_parameters', '_single_scalar_parameters',
'_deprecate_quattroshapes', '_deprecate_quattroshapes',
'_text',
'_iso2_to_iso3',
'_city_name_standardizer',
'_size', '_size',
'_targets/layers', '_targets/layers',
'_targets/sources', '_targets/sources',
@ -116,6 +113,9 @@ module.exports.tests.sanitize = (test, common) => {
'_geo_search', '_geo_search',
'_boundary_country', '_boundary_country',
'_categories', '_categories',
'_text',
'_iso2_to_iso3',
'_city_name_standardizer',
'_geonames_warnings' '_geonames_warnings'
]; ];

Loading…
Cancel
Save