Skip to content

Commit

Permalink
2.11.25
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 7, 2017
1 parent d2c5df8 commit 513920e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions Core/view/base/web/my/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ define(['df-lodash', 'df-uniform', 'jquery'], function(_, uniform, $) {return {
/**
* 2015-11-02
* http://stackoverflow.com/a/7616484
* @param {String} string
* @param {String} s
* @returns {Number}
*/
hash: function(string) {
hash: function(s) {
/** @type {Number} */
var result = 0;
if (string.length) {
if (s.length) {
/** @type {Number} */
var i;
/** @type {Number} */
var len;
for (i = 0, len = string.length; i < len; i++) {
for (i = 0, len = s.length; i < len; i++) {
/** @type {Number} */
var chr = string.charCodeAt (i);
var chr = s.charCodeAt (i);
result = ((result << 5) - result) + chr;
result |= 0; // Convert to 32bit integer
}
Expand All @@ -65,6 +65,12 @@ define(['df-lodash', 'df-uniform', 'jquery'], function(_, uniform, $) {return {
* @returns {String|String[]}
*/
lcFirst: uniform(function(s) {return s.charAt(0).toLowerCase() + s.slice(1);}),
/**
* 2017-09-07
* @param {String} s
* @returns {String}
*/
normalizePhone(s) {return '+' + s.replace(/\D/g, '');},
/**
* 2015-11-04
* Вставляет подстроку newChunk в заданное место position строки string.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/core"
,"version": "2.11.24"
,"version": "2.11.25"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit 513920e

Please sign in to comment.