doublemetaphone
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "doublemetaphone", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "doublemetaphone.js", | ||
@@ -5,0 +5,0 @@ "description": "Encode a string into a phonetic code with the Double Metaphone algorithm", |
@@ -25,3 +25,3 @@ | ||
* compatible with [Apache Jakarta Commons Codec](http://commons.apache.org/codec/) class DoubleMetaphone, Version 1.5 | ||
* compatible with [Apache Jakarta Commons Codec](http://commons.apache.org/codec/) class DoubleMetaphone, Version 1.5 - 1.8 | ||
* maximum length of codec settable (default=4) | ||
@@ -45,5 +45,8 @@ * implements the standard (=primary) and alternate encoding | ||
* Chromium 18.0.1025.151 / Linux | ||
* Firefox 11.0 / Linux | ||
* Chromium 18.0, 25.0 / Linux | ||
* Chrome 26.0 / Linux | ||
* Firefox 11.0, 20.0 / Linux | ||
* Firefox 5.0.1 and 12.0 / Windows XP | ||
* Firefox 21.0 / Windows 7 | ||
* Chrome 27.0 / Windows 7 | ||
* Safari 5.1.2 / Windows XP | ||
@@ -53,2 +56,3 @@ * Opera 11.11 / Windows XP | ||
* Internet Explorer 8.0.6001 / Windows XP | ||
* Internet Explorer 9.0 / Windows 7 | ||
@@ -59,3 +63,3 @@ These Browser didn't pass the tests (2 differences compared to commons-codec): | ||
* Opera | ||
* Internet Explorer | ||
* Internet Explorer (all tested versions) | ||
@@ -62,0 +66,0 @@ **Reason:** The correct upper-case conversion of the German "ß" (ß) is "SS". IE, Firefox and Opera do not convert |
@@ -5,3 +5,3 @@ /*jshint indent:4, browser:true, node:true, devel:true*/ | ||
var fs = require('fs'), | ||
rawdata = fs.readFileSync(__dirname + '/linux-credits.txt', 'utf-8'), | ||
rawdata = require(__dirname + '/linux-credits.js'), | ||
runTest = require('./test-doublemetaphone.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -19,3 +19,3 @@ /*jshint indent:4, browser:true, node:true, devel:true*/ | ||
function runTest(DoubleMetaphone, rawdata, callback) { | ||
function runTest(DoubleMetaphone, refdata, callback) { | ||
"use strict"; | ||
@@ -25,3 +25,2 @@ | ||
doubleMetaphone = new DoubleMetaphone(), | ||
refdata, | ||
i, len, line, tokens; | ||
@@ -52,11 +51,5 @@ | ||
refdata = rawdata.split('\n'); | ||
for (i = 0, len = refdata.length; i < len; ++i) { // forEach not possible, should run in browser | ||
line = refdata[i]; | ||
tokens = refdata[i]; | ||
if (line.trim().length === 0 || line.charAt(0) === '#') { | ||
continue; | ||
} | ||
tokens = line.split('\t'); | ||
if (tokens.length !== 6) { | ||
@@ -63,0 +56,0 @@ console.log('unexpected line: ' + line); |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
98467
15
1434
93
2