Skip to content

Commit

Permalink
Version 0.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Jul 21, 2015
1 parent 94eaa13 commit 648a0bf
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 30 deletions.
4 changes: 2 additions & 2 deletions BOOKMARKLET.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ or the minified version:
or from a CDN, either cdnjs:

```html
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.17.0/ramda.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.17.1/ramda.min.js"></script>
```

or one of the below links from [jsDelivr](http://jsdelivr.com):

```html
<script src="//cdn.jsdelivr.net/ramda/0.17.0/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/ramda/0.17.1/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/ramda/0.17/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/ramda/latest/ramda.min.js"></script>
```
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ramda",
"main": "dist/ramda.js",
"version": "0.17.0",
"version": "0.17.1",
"homepage": "https://github.com/ramda/ramda",
"authors": [
"(Scott Sauyet <[email protected]>)",
Expand Down
48 changes: 27 additions & 21 deletions dist/ramda.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Ramda v0.17.0
// Ramda v0.17.1
// https://github.com/ramda/ramda
// (c) 2013-2015 Scott Sauyet, Michael Hurley, and David Chambers
// Ramda may be freely distributed under the MIT license.
Expand Down Expand Up @@ -2047,6 +2047,30 @@
];
});

/**
* Tests a regular expression against a String. Note that this function
* will return an empty array when there are no matches. This differs
* from [`String.prototype.match`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match)
* which returns `null` when there are no matches.
*
* @func
* @memberOf R
* @see R.test
* @category String
* @sig RegExp -> String -> [String | Undefined]
* @param {RegExp} rx A regular expression.
* @param {String} str The string to match against
* @return {Array} The list of matches or empty array.
* @example
*
* R.match(/([a-z]a)/g, 'bananas'); //=> ['ba', 'na', 'na']
* R.match(/a/, 'b'); //=> []
* R.match(/a/, null); //=> TypeError: null does not have a method named "match"
*/
var match = _curry2(function match(rx, str) {
return str.match(rx) || [];
});

/**
* mathMod behaves like the modulo operator should mathematically, unlike the `%`
* operator (and by extension, R.modulo). So while "-17 % 5" is -2,
Expand Down Expand Up @@ -3023,7 +3047,7 @@
* @example
*
* var sortByFirstItem = R.sortBy(prop(0));
* var sortByNameCaseInsensitive = R.sortBy(compose(R.toLower, prop('name')));
* var sortByNameCaseInsensitive = R.sortBy(R.compose(R.toLower, R.prop('name')));
* var pairs = [[-1, 1], [-2, 2], [-3, 3]];
* sortByFirstItem(pairs); //=> [[-3, 3], [-2, 2], [-1, 1]]
* var alice = {
Expand Down Expand Up @@ -3131,6 +3155,7 @@
*
* @func
* @memberOf R
* @see R.match
* @category String
* @sig RegExp -> String -> Boolean
* @param {RegExp} pattern
Expand Down Expand Up @@ -7133,25 +7158,6 @@
*/
var join = invoker(1, 'join');

/**
* Tests a regular expression against a String. Note that this function
* will return an empty array when there are no matches. This differs
* from [`String.prototype.match`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match)
* which returns `null` when there are no matches.
*
* @func
* @memberOf R
* @category String
* @sig RegExp -> String -> [String | Undefined]
* @param {RegExp} rx A regular expression.
* @param {String} str The string to match against
* @return {Array} The list of matches.
* @example
*
* R.match(/([a-z]a)/g, 'bananas'); //=> ['ba', 'na', 'na']
*/
var match = _curry2(compose(defaultTo([]), invoker(1, 'match')));

/**
* Creates a new function that, when invoked, caches the result of calling `fn` for a given
* argument set and returns the result. Subsequent calls to the memoized `fn` with the same
Expand Down
6 changes: 3 additions & 3 deletions dist/ramda.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"name": "ramda",
"description": "A practical functional library for JavaScript programmers.",
"version": "0.17.0",
"version": "0.17.1",
"homepage": "https://www.github.com/ramda/ramda",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 648a0bf

Please sign in to comment.