Socket
Socket
Sign inDemoInstall

fast-levenshtein

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.3 to 2.0.4

2

levenshtein.js

@@ -5,3 +5,3 @@ (function() {

// language-sensitive collator
var collator = (typeof Intl !== undefined && typeof Intl.Collator !== undefined) ? Intl.Collator("generic", { sensitivity: "base" }) : null;
var collator = (typeof Intl !== "undefined" && typeof Intl.Collator !== "undefined") ? Intl.Collator("generic", { sensitivity: "base" }) : null;

@@ -8,0 +8,0 @@ // arrays to re-use

{
"name": "fast-levenshtein",
"version": "2.0.3",
"version": "2.0.4",
"description": "Efficient implementation of Levenshtein algorithm with locale-specific collator support.",

@@ -11,2 +11,3 @@ "main": "levenshtein.js",

"build": "grunt build",
"prepublish": "npm run build",
"benchmark": "grunt benchmark",

@@ -13,0 +14,0 @@ "test": "mocha"

# fast-levenshtein - Levenshtein algorithm in Javascript
[![Build Status](https://secure.travis-ci.org/hiddentao/fast-levenshtein.png)](http://travis-ci.org/hiddentao/fast-levenshtein)
[![NPM module](https://badge.fury.io/js/fast-levenshtein.png)](https://badge.fury.io/js/fast-levenshtein)
[![NPM downloads](https://img.shields.io/npm/dm/fast-levenshtein.svg?maxAge=2592000)](https://www.npmjs.com/package/fast-levenshtein)
[![Follow on Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/hiddentao)

@@ -5,0 +8,0 @@ An efficient Javascript implementation of the [Levenshtein algorithm](http://en.wikipedia.org/wiki/Levenshtein_distance) with locale-specific collator support.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc