From 449161586651613b9e3be3c9e4f133d9708e60b0 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 30 May 2022 22:43:22 -0400 Subject: [PATCH 1/9] spelling: automata Signed-off-by: Josh Soref --- test/token_set_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/token_set_test.js b/test/token_set_test.js index c2f45b61..b7b21b02 100644 --- a/test/token_set_test.js +++ b/test/token_set_test.js @@ -58,7 +58,7 @@ suite('lunr.TokenSet', function () { // a state reached by a wildcard has // an edge with a wildcard to itself. - // the resulting automota is + // the resulting automata is // non-determenistic assert.equal(wild, wild.edges['*']) assert.isOk(wild.final) From fb21c94f69eec7387881654c01a134aabc955347 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 30 May 2022 22:43:22 -0400 Subject: [PATCH 2/9] spelling: deterministic Signed-off-by: Josh Soref --- test/token_set_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/token_set_test.js b/test/token_set_test.js index b7b21b02..297f735d 100644 --- a/test/token_set_test.js +++ b/test/token_set_test.js @@ -59,7 +59,7 @@ suite('lunr.TokenSet', function () { // a state reached by a wildcard has // an edge with a wildcard to itself. // the resulting automata is - // non-determenistic + // non-deterministic assert.equal(wild, wild.edges['*']) assert.isOk(wild.final) }) From cecfcd24b48188f4d8d89fb1bd4f5fe0f8b1cb88 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 30 May 2022 22:43:23 -0400 Subject: [PATCH 3/9] spelling: environments Signed-off-by: Josh Soref --- build/wrapper_end | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/wrapper_end b/build/wrapper_end index 380dd453..3880b536 100644 --- a/build/wrapper_end +++ b/build/wrapper_end @@ -10,7 +10,7 @@ } else if (typeof exports === 'object') { /** * Node. Does not work with strict CommonJS, but - * only CommonJS-like enviroments that support module.exports, + * only CommonJS-like environments that support module.exports, * like Node. */ module.exports = factory() From 7dad87d25b6fcd2ce89877a3bc5bd4f07562917c Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 30 May 2022 22:43:23 -0400 Subject: [PATCH 4/9] spelling: lexemes Signed-off-by: Josh Soref --- test/query_lexer_test.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/query_lexer_test.js b/test/query_lexer_test.js index d12cff6f..8a279921 100644 --- a/test/query_lexer_test.js +++ b/test/query_lexer_test.js @@ -115,7 +115,7 @@ suite('lunr.QueryLexer', function () { this.lexer = lex('foo bar') }) - test('produces 2 lexems', function () { + test('produces 2 lexemes', function () { assert.lengthOf(this.lexer.lexemes, 2) }) @@ -152,7 +152,7 @@ suite('lunr.QueryLexer', function () { this.lexer = lex('+foo +bar') }) - test('produces 2 lexems', function () { + test('produces 2 lexemes', function () { assert.lengthOf(this.lexer.lexemes, 4) }) @@ -216,7 +216,7 @@ suite('lunr.QueryLexer', function () { this.lexer = lex('foo bar') }) - test('produces 2 lexems', function () { + test('produces 2 lexemes', function () { assert.lengthOf(this.lexer.lexemes, 2) }) @@ -263,7 +263,7 @@ suite('lunr.QueryLexer', function () { this.lexer = lex('title:foo') }) - test('produces 2 lexems', function () { + test('produces 2 lexemes', function () { assert.lengthOf(this.lexer.lexemes, 2) }) @@ -453,7 +453,7 @@ suite('lunr.QueryLexer', function () { this.lexer = lex('foo~2') }) - test('produces 2 lexems', function () { + test('produces 2 lexemes', function () { assert.lengthOf(this.lexer.lexemes, 2) }) @@ -490,7 +490,7 @@ suite('lunr.QueryLexer', function () { this.lexer = lex('foo^10') }) - test('produces 2 lexems', function () { + test('produces 2 lexemes', function () { assert.lengthOf(this.lexer.lexemes, 2) }) @@ -527,7 +527,7 @@ suite('lunr.QueryLexer', function () { this.lexer = lex('title:foo^10~5') }) - test('produces 4 lexems', function () { + test('produces 4 lexemes', function () { assert.lengthOf(this.lexer.lexemes, 4) }) From b1b27b38481661480b6ee75391a0a7ce3f4a6c4e Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 30 May 2022 22:43:24 -0400 Subject: [PATCH 5/9] spelling: original Signed-off-by: Josh Soref --- test/utils_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils_test.js b/test/utils_test.js index f6bc7e54..70d8daab 100644 --- a/test/utils_test.js +++ b/test/utils_test.js @@ -54,7 +54,7 @@ suite('lunr.utils', function () { assert.deepEqual(this.obj.array, this.clone.array) }) - test('mutations on clone do not affect orginial', function () { + test('mutations on clone do not affect original', function () { this.clone.array.push(4) assert.notDeepEqual(this.obj.array, this.clone.array) assert.equal(this.obj.array.length, 3) From 838f9aed7768e102e0abbb3b02cf1b77ec869229 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 30 May 2022 22:43:24 -0400 Subject: [PATCH 6/9] spelling: pipeline Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2a7ca63..c1b88c84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ ## 2.3.8 -* Fix bug [#422](https://github.com/olivernn/lunr.js/issues/422) where a pipline function that returned null was not skipping the token as described in the documentation. Thanks [Stephen Cleary](https://github.com/StephenCleary) and [Rob Hoelz](https://github.com/hoelzro) for reporting and investigating. +* Fix bug [#422](https://github.com/olivernn/lunr.js/issues/422) where a pipeline function that returned null was not skipping the token as described in the documentation. Thanks [Stephen Cleary](https://github.com/StephenCleary) and [Rob Hoelz](https://github.com/hoelzro) for reporting and investigating. ## 2.3.7 From f6b582a2792813519d4eeb1736da9f5867bd51d8 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 30 May 2022 22:43:24 -0400 Subject: [PATCH 7/9] spelling: primitives Signed-off-by: Josh Soref --- test/utils_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils_test.js b/test/utils_test.js index 70d8daab..b259dda5 100644 --- a/test/utils_test.js +++ b/test/utils_test.js @@ -25,7 +25,7 @@ suite('lunr.utils', function () { }) }) - suite('object with primatives', function () { + suite('object with primitives', function () { subject({ number: 1, string: 'foo', From e18f2a71e1d651929b960630f4b2746211daad25 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 30 May 2022 22:43:25 -0400 Subject: [PATCH 8/9] spelling: separator Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- test/query_lexer_test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1b88c84..1068bffd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -140,7 +140,7 @@ * Replace array-like string access with ES3 compatible `String.prototype.charAt` [#186](https://github.com/olivernn/lunr.js/pull/186), thanks [jkellerer](https://github.com/jkellerer). * Move empty string filtering from `lunr.trimmer` to `lunr.Pipeline.prototype.run` so that empty tokens do not enter the index, regardless of the trimmer being used [#178](https://github.com/olivernn/lunr.js/issues/178), [#177](https://github.com/olivernn/lunr.js/issues/177) and [#174](https://github.com/olivernn/lunr.js/issues/174) * Allow tokenization of arrays with null and non string elements [#172](https://github.com/olivernn/lunr.js/issues/172). -* Parameterize the seperator used by `lunr.tokenizer`, fixes [#102](https://github.com/olivernn/lunr.js/issues/102). +* Parameterize the separator used by `lunr.tokenizer`, fixes [#102](https://github.com/olivernn/lunr.js/issues/102). ## 0.5.12 diff --git a/test/query_lexer_test.js b/test/query_lexer_test.js index 8a279921..51e157d9 100644 --- a/test/query_lexer_test.js +++ b/test/query_lexer_test.js @@ -248,7 +248,7 @@ suite('lunr.QueryLexer', function () { }) }) - suite('hyphen (-) considered a seperator', function () { + suite('hyphen (-) considered a separator', function () { setup(function () { this.lexer = lex('foo-bar') }) From 56cf8cb218a16c098c119ba2c0514d43f4483df9 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 30 May 2022 22:43:25 -0400 Subject: [PATCH 9/9] spelling: unregistered Signed-off-by: Josh Soref --- test/pipeline_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pipeline_test.js b/test/pipeline_test.js index f080bf9d..8bd072bd 100644 --- a/test/pipeline_test.js +++ b/test/pipeline_test.js @@ -257,7 +257,7 @@ suite('lunr.Pipeline', function () { assert.equal(fn, pipeline._stack[0]) }) - test('with unregisterd functions', function () { + test('with unregistered functions', function () { var serializedPipeline = ['fn'] assert.throws(function () {