[Pkg-javascript-commits] [node-entities] 56/63: encode: rename nonUTF8Replacer
Wolfgang Borgert
debacle at moszumanska.debian.org
Mon Sep 22 08:15:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository node-entities.
commit d57fa78b569c6afc37a441d209d0a19fd207bfdd
Author: fb55 <me at feedic.com>
Date: Sun Apr 13 22:27:23 2014 +0200
encode: rename nonUTF8Replacer
---
lib/encode.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/encode.js b/lib/encode.js
index 04f1d2a..79119b7 100644
--- a/lib/encode.js
+++ b/lib/encode.js
@@ -22,7 +22,7 @@ function getInverseReplacer(inverse){
var re_nonASCII = /[^\0-\x7F]/g,
re_astralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
-function nonUTF8Replacer(c){
+function singleCharReplacer(c){
return "&#x" + c.charCodeAt(0).toString(16).toUpperCase() + ";";
}
@@ -43,6 +43,6 @@ function getInverse(inverse, re){
return data
.replace(re, func)
.replace(re_astralSymbols, astralReplacer)
- .replace(re_nonASCII, nonUTF8Replacer);
+ .replace(re_nonASCII, singleCharReplacer);
};
}
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-entities.git
More information about the Pkg-javascript-commits
mailing list