uniformize
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -25,3 +25,3 @@ "use strict"; | ||
String.prototype.unidecode = function(keepAccent) { | ||
const emojiRegex = /[\p{Emoji}]/gu; | ||
const emojiRegex = /[\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}]\s*/gu; | ||
const decoded = this.replace(emojiRegex, "").trim(); | ||
@@ -28,0 +28,0 @@ if (keepAccent) return decoded; |
@@ -7,3 +7,3 @@ { | ||
"type": "commonjs", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"repository": { | ||
@@ -20,3 +20,3 @@ "type": "git", | ||
"release": "commit-and-tag-version", | ||
"postrelease": "npm publish" | ||
"postrelease": "npm publish && git push --follow-tags origin master" | ||
}, | ||
@@ -23,0 +23,0 @@ "cross-os": { |
@@ -27,3 +27,3 @@ String.prototype.removeAccents = function () { | ||
String.prototype.unidecode = function (keepAccent?: boolean) { | ||
const emojiRegex = /[\p{Emoji}]/gu; | ||
const emojiRegex = /[\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}]\s*/gu ; | ||
const decoded = this.replace(emojiRegex, "").trim(); | ||
@@ -30,0 +30,0 @@ if (keepAccent) return decoded; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15846