Skip to content

Commit

Permalink
1.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
panzerdp committed Dec 25, 2017
1 parent 222bd70 commit f869ea9
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 33 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ Licensed under [MIT](https://github.com/panzerdp/voca/blob/master/LICENSE.md)

[CODE_OF_CONDUCT]: https://github.com/panzerdp/voca/blob/master/CODE_OF_CONDUCT.md
[CONTRIBUTING]: https://github.com/panzerdp/voca/blob/master/.github/CONTRIBUTING.md
[voca_min_js]: https://raw.githubusercontent.com/panzerdp/voca/1.3.1/dist/voca.min.js
[source_map]: https://raw.githubusercontent.com/panzerdp/voca/1.3.1/dist/voca.min.js.map
[voca_js]: https://raw.githubusercontent.com/panzerdp/voca/1.3.1/dist/voca.js
[voca_min_js]: https://raw.githubusercontent.com/panzerdp/voca/1.4.0/dist/voca.min.js
[source_map]: https://raw.githubusercontent.com/panzerdp/voca/1.4.0/dist/voca.min.js.map
[voca_js]: https://raw.githubusercontent.com/panzerdp/voca/1.4.0/dist/voca.js
[voca]: https://vocajs.com
[logo]: https://github.com/panzerdp/voca/raw/master/jsdoc/template/static/images/[email protected]
[logo_commonjs]: https://github.com/panzerdp/voca/raw/master/jsdoc/template/static/images/[email protected]
Expand Down
30 changes: 15 additions & 15 deletions dist/voca.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Voca string library 1.3.1
* Voca string library 1.4.0
* https://vocajs.com
*
* Copyright Dmitri Pavlutin and other contributors
Expand Down Expand Up @@ -204,7 +204,7 @@ var REGEXP_COMBINING_MARKS = new RegExp('([' + base + ']|[' + highSurrogate + ']
var REGEXP_SURROGATE_PAIRS = new RegExp('([' + highSurrogate + '])([' + lowSurrogate + '])', 'g');

/**
* Regular expression to match an unicode character
* Regular expression to match a unicode character
*
* @type {RegExp}
* @ignore
Expand Down Expand Up @@ -252,7 +252,7 @@ var REGEXP_DIGIT = new RegExp('^' + digit + '+$');
* @type {RegExp}
* @ignore
*/
var REGEXP_SPECIAL_CHARACTERS = /[-[\]{}()*+!<=:?.\/\\^$|#,]/g;
var REGEXP_SPECIAL_CHARACTERS = /[-[\]{}()*+!<=:?./\\^$|#,]/g;

/**
* Regular expression to match not latin characters
Expand Down Expand Up @@ -388,7 +388,7 @@ var REGEXP_ALPHA_DIGIT = new RegExp('^((?:[' + lowerCaseLetter + upperCaseLetter
* @type {RegExp}
* @ignore
*/
var REGEXP_EXTENDED_ASCII = /^[\x00-\xFF]*$/;
var REGEXP_EXTENDED_ASCII = /^[\x01-\xFF]*$/;

/**
* Verifies if `value` is `undefined` or `null` and returns `defaultValue`. In other case returns `value`.
Expand Down Expand Up @@ -629,25 +629,25 @@ function swapAndConcat(swapped, character) {
*
* @function titleCase
* @static
* @since 1.2.0
* @since 1.4.0
* @memberOf Case
* @param {string} [subject=''] The string to convert to title case.
* @param {Array} [ignoreWords] The words that should not be capitalized.
* @param {Array} [noSplit] Do not split words at the specified characters.
* @return {string} Returns the title case string.
* @example
* v.titleCase('learning to fly');
* // => 'Learning To Fly'
*
* v.titleCase('another brick in the wall', ['in', 'the']);
* // => 'Another Brick in the Wall'
* v.titleCase('jean-luc is good-looking', ['-']);
* // => 'Jean-luc Is Good-looking'
*/
function titleCase(subject, ignoreWords) {
function titleCase(subject, noSplit) {
var subjectString = coerceToString(subject);
var ignoreWordsArray = Array.isArray(ignoreWords) ? ignoreWords : [];
var noSplitArray = Array.isArray(noSplit) ? noSplit : [];
var wordsRegExp = REGEXP_EXTENDED_ASCII.test(subjectString) ? REGEXP_LATIN_WORD : REGEXP_WORD;
return subjectString.replace(wordsRegExp, function (word) {
var lowerCaseWord = word.toLowerCase();
return ignoreWordsArray.indexOf(lowerCaseWord) !== -1 ? lowerCaseWord : capitalize(lowerCaseWord, true);
return subjectString.replace(wordsRegExp, function (word, index) {
var isNoSplit = index > 0 && noSplitArray.indexOf(subjectString[index - 1]) >= 0;
return isNoSplit ? word.toLowerCase() : capitalize(word, true);
});
}

Expand Down Expand Up @@ -3635,9 +3635,9 @@ function noConflict() {
* @type string
* @example
* v.version
* // => '1.3.1'
* // => '1.4.0'
*/
var version = '1.3.1';
var version = '1.4.0';

/* eslint sort-imports: "off" */

Expand Down
4 changes: 2 additions & 2 deletions dist/voca.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/voca.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions jsdoc/template/tmpl/introduction.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ last('sun rises', 5); // => 'rises'</code></pre>

<ul>
<li>
<a href="https://raw.githubusercontent.com/panzerdp/voca/1.3.1/dist/voca.min.js">voca.min.js</a>
minified production-ready, with <a href="https://raw.githubusercontent.com/panzerdp/voca/1.3.1/dist/voca.min.js.map">source map</a>
<a href="https://raw.githubusercontent.com/panzerdp/voca/1.4.0/dist/voca.min.js">voca.min.js</a>
minified production-ready, with <a href="https://raw.githubusercontent.com/panzerdp/voca/1.4.0/dist/voca.min.js.map">source map</a>
</li>
<li>
<a href="https://raw.githubusercontent.com/panzerdp/voca/1.3.1/dist/voca.js">voca.js</a> uncompressed
<a href="https://raw.githubusercontent.com/panzerdp/voca/1.4.0/dist/voca.js">voca.js</a> uncompressed
with comments
</li>
</ul>
Expand Down
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "voca",
"version": "1.3.1",
"version": "1.4.0",
"description": "The ultimate JavaScript string library",
"homepage": "https://vocajs.com",
"author": {
"name": "Dmitri Pavlutin",
"email": "[email protected]",
"url": "https://rainsoft.io/about-me/"
"url": "https://dmitripavlutin.com/about-me/"
},
"license": "MIT",
"keywords": [
Expand All @@ -23,11 +23,6 @@
"case",
"strip"
],
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/voca",
"logo": "https://opencollective.com/voca/logo.txt"
},
"repository": {
"type": "git",
"url": "git+https://github.com/panzerdp/voca.git"
Expand Down
4 changes: 2 additions & 2 deletions src/util/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* @type string
* @example
* v.version
* // => '1.3.1'
* // => '1.4.0'
*/
const version = '1.3.1';
const version = '1.4.0';

export default version;

0 comments on commit f869ea9

Please sign in to comment.