Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos found by codespell #501

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

* Improve handling of term boosts across multiple fields [#263](https://github.com/olivernn/lunr.js/issues/263)
* Enable escaping of special characters when performing a search [#271](https://github.com/olivernn/lunr.js/issues/271)
* Add ability to programatically include leading and trailing wildcards when performing a query.
* Add ability to programmatically include leading and trailing wildcards when performing a query.

## 2.0.4

Expand Down Expand Up @@ -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

Expand All @@ -161,7 +161,7 @@
## 0.5.9

* Remove recursion from SortedSet#indexOf and SortedSet#locationFor to gain small performance gains in Index#search and Index#add
* Fix incorrect handling of non existant functions when adding/removing from a Pipeline [#146](https://github.com/olivernn/lunr.js/issues/146) thanks to [weixsong](https://github.com/weixsong)
* Fix incorrect handling of non-existent functions when adding/removing from a Pipeline [#146](https://github.com/olivernn/lunr.js/issues/146) thanks to [weixsong](https://github.com/weixsong)

## 0.5.8

Expand Down Expand Up @@ -245,7 +245,7 @@

## 0.3.1

* Fix bug [#24](https://github.com/olivernn/lunr.js/pull/24) that caused an error when trying to remove a non-existant document from the index, thanks [Jesús Leganés Combarro](https://github.com/piranna)
* Fix bug [#24](https://github.com/olivernn/lunr.js/pull/24) that caused an error when trying to remove a non-existent document from the index, thanks [Jesús Leganés Combarro](https://github.com/piranna)

## 0.3.0

Expand Down
2 changes: 1 addition & 1 deletion build/wrapper_end
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion lunr.js
Original file line number Diff line number Diff line change
Expand Up @@ -3456,7 +3456,7 @@ lunr.QueryParser.parseBoost = function (parser) {
} 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()
Expand Down
18 changes: 9 additions & 9 deletions test/env/chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ module.exports = {
*
* Set it to zero if you want to disable truncating altogether.
*
* This is especially userful when doing assertions on arrays: having this
* This is especially useful when doing assertions on arrays: having this
* set to a reasonable large value makes the failure messages readily
* inspectable.
*
Expand Down Expand Up @@ -4381,7 +4381,7 @@ module.exports = function getEnumerableProperties(object) {
*/

/*!
* Module dependancies
* Module dependencies
*/

var flag = require('./flag')
Expand Down Expand Up @@ -4855,7 +4855,7 @@ var getEnumerableProperties = require('./getEnumerableProperties');
module.exports = inspect;

/**
* Echos the value of a value. Trys to print the value out
* Echos the value of a value. Tries to print the value out
* in the best way possible given the different types.
*
* @param {Object} obj The object to print out.
Expand Down Expand Up @@ -5189,7 +5189,7 @@ function objectToString(o) {
*/

/*!
* Module dependancies
* Module dependencies
*/

var inspect = require('./inspect');
Expand Down Expand Up @@ -5243,7 +5243,7 @@ module.exports = function (obj) {
/**
* ### overwriteChainableMethod (ctx, name, method, chainingBehavior)
*
* Overwites an already existing chainable method
* Overwrites an already existing chainable method
* and provides access to the previous function or
* property. Must return functions to be used for
* name.
Expand Down Expand Up @@ -5299,7 +5299,7 @@ module.exports = function (ctx, name, method, chainingBehavior) {
/**
* ### overwriteMethod (ctx, name, fn)
*
* Overwites an already existing method and provides
* Overwrites an already existing method and provides
* access to previous function. Must return function
* to be used for name.
*
Expand Down Expand Up @@ -5353,7 +5353,7 @@ module.exports = function (ctx, name, method) {
/**
* ### overwriteProperty (ctx, name, fn)
*
* Overwites an already existing property getter and provides
* Overwrites an already existing property getter and provides
* access to previous value. Must return function to use as getter.
*
* utils.overwriteProperty(chai.Assertion.prototype, 'ok', function (_super) {
Expand Down Expand Up @@ -5408,7 +5408,7 @@ module.exports = function (ctx, name, getter) {
*/

/*!
* Module dependancies
* Module dependencies
*/

var flag = require('./flag');
Expand Down Expand Up @@ -6139,4 +6139,4 @@ Library.prototype.test = function(obj, type) {
};

},{}]},{},[1])(1)
});
});
12 changes: 6 additions & 6 deletions test/env/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ exports.cursor = {
};

/**
* Outut the given `failures` as a list.
* Output the given `failures` as a list.
*
* @param {Array} failures
* @api public
Expand Down Expand Up @@ -7055,7 +7055,7 @@ function alloc (that, size, fill, encoding) {
if (fill !== undefined) {
// Only pay attention to encoding if it's a string. This
// prevents accidentally sending in a number that would
// be interpretted as a start offset.
// be interpreted as a start offset.
return typeof encoding === 'string'
? createBuffer(that, size).fill(fill, encoding)
: createBuffer(that, size).fill(fill)
Expand Down Expand Up @@ -7344,7 +7344,7 @@ function slowToString (encoding, start, end) {
return ''
}

// Force coersion to uint32. This will also coerce falsey/NaN values to 0.
// Force coercion to uint32. This will also coerce falsey/NaN values to 0.
end >>>= 0
start >>>= 0

Expand Down Expand Up @@ -9781,7 +9781,7 @@ exports.version = '1.4.1'
* - sticky Make the notification stick (defaults to false)
* - priority Specify an int or named key (default is 0)
* - name Application name (defaults to growlnotify)
* - sound Sound efect ( in OSx defined in preferences -> sound -> effects) * works only in OSX > 10.8x
* - sound Sound effect ( in OSx defined in preferences -> sound -> effects) * works only in OSX > 10.8x
* - image
* - path to an icon sets --iconpath
* - path to an image sets --image
Expand Down Expand Up @@ -12375,7 +12375,7 @@ process.nextTick = function (fun) {
}
};

// v8 likes predictible objects
// v8 likes predictable objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
Expand Down Expand Up @@ -14700,7 +14700,7 @@ exports.debuglog = function(set) {


/**
* Echos the value of a value. Trys to print the value out
* Echos the value of a value. Tries to print the value out
* in the best way possible given the different types.
*
* @param {Object} obj The object to print out.
Expand Down
2 changes: 1 addition & 1 deletion test/pipeline_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down