From 8327371bd6564822ea009dffa87fac0f5799575a Mon Sep 17 00:00:00 2001 From: Anton Lavrenov Date: Thu, 8 Nov 2018 09:15:47 -0500 Subject: [PATCH] update CHANGELOG with new version --- CHANGELOG.md | 2 ++ konva.js | 4 ++-- src/Util.js | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a90c556..61d89699 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [new version][unreleased] +## [2.5.1][2018-11-08] + ### Changed * Use custom functions for `trimRight` and `trimLeft` (for better browsers support) diff --git a/konva.js b/konva.js index 4d13c791..96c00323 100644 --- a/konva.js +++ b/konva.js @@ -1025,10 +1025,10 @@ return retObj; }, trimRight: function(str) { - return str.replace(/\s+$/, ""); + return str.replace(/\s+$/, ''); }, trimLeft: function(str) { - return str.replace(/^\s+/, ""); + return str.replace(/^\s+/, ''); }, /** * check intersection of two client rectangles diff --git a/src/Util.js b/src/Util.js index 179edb3a..0fb243ed 100644 --- a/src/Util.js +++ b/src/Util.js @@ -765,10 +765,10 @@ return retObj; }, trimRight: function(str) { - return str.replace(/\s+$/, ""); + return str.replace(/\s+$/, ''); }, trimLeft: function(str) { - return str.replace(/^\s+/, ""); + return str.replace(/^\s+/, ''); }, /** * check intersection of two client rectangles