From a7cb00ce092855d065e74da348ca315efa47d4aa Mon Sep 17 00:00:00 2001 From: Spencer Creasey Date: Fri, 8 Apr 2016 17:26:44 -0700 Subject: [PATCH 1/2] fix: call .replace on string value --- lib/string.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/string.js b/lib/string.js index 985944e..d17400d 100644 --- a/lib/string.js +++ b/lib/string.js @@ -131,7 +131,7 @@ string.js - Copyright (C) 2012-2014, JP Richardson }, latinise: function() { - var s = this.replace(/[^A-Za-z0-9\[\] ]/g, function(x) { return latin_map[x] || x; }); + var s = this.s.replace(/[^A-Za-z0-9\[\] ]/g, function(x) { return latin_map[x] || x; }); return new this.constructor(s); }, From dccb989f3a44ec90f1f957846a92f113adbd49dd Mon Sep 17 00:00:00 2001 From: Spencer Creasey Date: Fri, 8 Apr 2016 17:27:07 -0700 Subject: [PATCH 2/2] 3.3.2 --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4790c42..b441c93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +3.3.2 / 2016-04-08 +--------------------- +- Compatibility with babel-polyfill + 3.3.1 / 2015-08-06 --------------------- - fix [#160](https://github.com/jprichardson/string.js/issues/160) diff --git a/package.json b/package.json index 73cb368..753434f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "string", - "version": "3.3.1", + "version": "3.3.2", "description": "string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.", "homepage": "http://stringjs.com", "repository": {