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/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); }, 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": {