Skip to content

Commit 00577f4

Browse files
committed
docs: Fix return type and better wording
Fixes #200
1 parent a103503 commit 00577f4

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Returns true if the given `string` contains the given pattern. Similar to [.isMa
229229
* `str` **{String}**: The string to match.
230230
* `patterns` **{String|Array}**: Glob pattern to use for matching.
231231
* `options` **{Object}**: See available [options](#options) for changing how matches are performed
232-
* `returns` **{Boolean}**: Returns true if the patter matches any part of `str`.
232+
* `returns` **{Boolean}**: Returns true if any of the patterns matches any part of `str`.
233233

234234
**Example**
235235

@@ -274,7 +274,7 @@ Returns true if some of the strings in the given `list` match any of the given g
274274
* `list` **{String|Array}**: The string or array of strings to test. Returns as soon as the first match is found.
275275
* `patterns` **{String|Array}**: One or more glob patterns to use for matching.
276276
* `options` **{Object}**: See available [options](#options) for changing how matches are performed
277-
* `returns` **{Boolean}**: Returns true if any patterns match `str`
277+
* `returns` **{Boolean}**: Returns true if any `patterns` matches any of the strings in `list`
278278

279279
**Example**
280280

@@ -297,7 +297,7 @@ Returns true if every string in the given `list` matches any of the given glob `
297297
* `list` **{String|Array}**: The string or array of strings to test.
298298
* `patterns` **{String|Array}**: One or more glob patterns to use for matching.
299299
* `options` **{Object}**: See available [options](#options) for changing how matches are performed
300-
* `returns` **{Boolean}**: Returns true if any patterns match `str`
300+
* `returns` **{Boolean}**: Returns true if all `patterns` matches all of the strings in `list`
301301

302302
**Example**
303303

@@ -354,7 +354,7 @@ Returns an array of matches captured by `pattern` in `string, or`null` if the pa
354354
* `glob` **{String}**: Glob pattern to use for matching.
355355
* `input` **{String}**: String to match
356356
* `options` **{Object}**: See available [options](#options) for changing how matches are performed
357-
* `returns` **{Boolean}**: Returns an array of captures if the input matches the glob pattern, otherwise `null`.
357+
* `returns` **{Array|null}**: Returns an array of captures if the input matches the glob pattern, otherwise `null`.
358358

359359
**Example**
360360

@@ -967,8 +967,8 @@ You might also be interested in these projects:
967967
| 12 | [es128](https://github.com/es128) |
968968
| 8 | [doowb](https://github.com/doowb) |
969969
| 6 | [paulmillr](https://github.com/paulmillr) |
970-
| 5 | [danez](https://github.com/danez) |
971970
| 5 | [mrmlnc](https://github.com/mrmlnc) |
971+
| 4 | [danez](https://github.com/danez) |
972972
| 3 | [DrPizza](https://github.com/DrPizza) |
973973
| 2 | [TrySound](https://github.com/TrySound) |
974974
| 2 | [mceIdo](https://github.com/mceIdo) |
@@ -986,7 +986,6 @@ You might also be interested in these projects:
986986
| 1 | [sebdeckers](https://github.com/sebdeckers) |
987987
| 1 | [tomByrer](https://github.com/tomByrer) |
988988
| 1 | [fidian](https://github.com/fidian) |
989-
| 1 | [curbengh](https://github.com/curbengh) |
990989
| 1 | [simlu](https://github.com/simlu) |
991990
| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |
992991
| 1 | [yvele](https://github.com/yvele) |

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ micromatch.not = (list, patterns, options = {}) => {
181181
* @param {String} `str` The string to match.
182182
* @param {String|Array} `patterns` Glob pattern to use for matching.
183183
* @param {Object} `options` See available [options](#options) for changing how matches are performed
184-
* @return {Boolean} Returns true if the patter matches any part of `str`.
184+
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
185185
* @api public
186186
*/
187187

@@ -252,7 +252,7 @@ micromatch.matchKeys = (obj, patterns, options) => {
252252
* @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
253253
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
254254
* @param {Object} `options` See available [options](#options) for changing how matches are performed
255-
* @return {Boolean} Returns true if any patterns match `str`
255+
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
256256
* @api public
257257
*/
258258

@@ -288,7 +288,7 @@ micromatch.some = (list, patterns, options) => {
288288
* @param {String|Array} `list` The string or array of strings to test.
289289
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
290290
* @param {Object} `options` See available [options](#options) for changing how matches are performed
291-
* @return {Boolean} Returns true if any patterns match `str`
291+
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
292292
* @api public
293293
*/
294294

@@ -354,7 +354,7 @@ micromatch.all = (str, patterns, options) => {
354354
* @param {String} `glob` Glob pattern to use for matching.
355355
* @param {String} `input` String to match
356356
* @param {Object} `options` See available [options](#options) for changing how matches are performed
357-
* @return {Boolean} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
357+
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
358358
* @api public
359359
*/
360360

0 commit comments

Comments
 (0)