Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pelias-schema

Package Overview
Dependencies
Maintainers
0
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pelias-schema - npm Package Compare versions

Comparing version 7.0.0 to 7.1.0

3

integration/analyzer_peliasPhrase.js

@@ -50,3 +50,4 @@ // validate analyzer is behaving as expected

assertAnalysis( 'punctuation', 'Hawai‘i', ['hawaii'] );
assertAnalysis( 'punctuation - « in between', '«res»pub«lika»', ['respublika'] );
assertAnalysis( 'british_american_english', 'town theatre', ['0:town', '1:theatre', '1:theater'] );

@@ -53,0 +54,0 @@ assertAnalysis( 'british_american_english', 'town theater', ['0:town', '1:theater', '1:theatre'] );

{
"name": "pelias-schema",
"version": "7.0.0",
"version": "7.1.0",
"author": "pelias",

@@ -5,0 +5,0 @@ "description": "Elasticsearch schema files and tooling for Pelias",

// These characters will be removed from ngrams/shingles
// @see: org/apache/lucene/analysis/cn/smart/stopwords.txt
module.exports.all = [
".","`","‘","-","_","=","?","'","|","\"","(",")","{","}","[","]","<",">","*",
"#","&","^","$","@","!","~",":",";","+","《","》","—","-",",","。",
"、", ":",";","!","·","?","„","“","”",")","(","【","】","[","]","●"
const all = [
".","`","‘","’","‛","-","_","=","?","'","|","\"","(",")","{","}","[","]","<",">","*",
"#","&","^","$","@","!","~",":",";","+","《","》","—","-",",","。","‹","›","⹂","〝","〞",
"、", ":",";","!","·","?","„","“","”","‟",")","(","【","】","[","]","●","«","»"
];
module.exports.allowed = [
const allowed = [
"-", // allow hypens

@@ -15,10 +15,5 @@ "&" // allow ampersands

module.exports.blacklist = module.exports.all.slice();
// remove alowed chars from blacklist
const blacklist = all.filter(s => !allowed.includes(s));
// remove alowed chars from blacklist
module.exports.allowed.forEach(function(item){
var index = module.exports.blacklist.indexOf(item);
if( index > -1 ){
module.exports.blacklist.splice(index, 1);
}
});
module.exports = { all, allowed, blacklist };

@@ -594,3 +594,3 @@ var path = require('path'),

t.true(Array.isArray(char_filter.mappings));
t.equal(char_filter.mappings.length, 49);
t.equal(char_filter.mappings.length, 59);
t.end();

@@ -597,0 +597,0 @@ });

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc