[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

vestbo at webkit.org vestbo at webkit.org
Wed Dec 22 13:51:26 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 93d6a443a806812b1d7d0f2c1172653bb329a915
Author: vestbo at webkit.org <vestbo at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Sep 28 11:40:02 2010 +0000

    Convert verbatim unicode values in comitter names to characters
    
    Reviewed by Csaba Osztrogonác.
    
    * committers-autocomplete.js:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68506 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/BugsSite/ChangeLog b/BugsSite/ChangeLog
index 83ebe74..ac2c098 100644
--- a/BugsSite/ChangeLog
+++ b/BugsSite/ChangeLog
@@ -1,3 +1,11 @@
+2010-09-28  Tor Arne Vestbø  <tor.arne.vestbo at nokia.com>
+
+        Reviewed by Csaba Osztrogonác.
+
+        Convert verbatim unicode values in comitter names to characters
+
+        * committers-autocomplete.js:
+
 2010-09-24  Tor Arne Vestbø  <tor.arne.vestbo at nokia.com>
 
         Reviewed by Csaba Osztrogonác.
diff --git a/BugsSite/committers-autocomplete.js b/BugsSite/committers-autocomplete.js
index 5b5bbfc..c9fd50d 100644
--- a/BugsSite/committers-autocomplete.js
+++ b/BugsSite/committers-autocomplete.js
@@ -55,7 +55,7 @@ WebKitCommitters = (function() {
         var parsedResult = {};
 
         // full name
-        var param = /^\s*((\[[^\]]+\])|u?("[^"]+"))\s*/g; // For emacs " to balance the quotes.
+        var param = /^\s*((\[[^\]]+\])|(u?)("[^"]+"))\s*/g; // For emacs " to balance the quotes.
         param.lastIndex = 0;
         var nameParam = param.exec(record);
         if (!nameParam)
@@ -63,7 +63,19 @@ WebKitCommitters = (function() {
         record = record.substring(param.lastIndex);
 
         // Save the name without the quotes.
-        parsedResult.name = nameParam[3].slice(1, nameParam[3].length - 1);
+        var name = nameParam[4].slice(1, nameParam[4].length - 1);
+
+        // Convert unicode characters
+        if (nameParam[3] == 'u') {
+            var unicode = /\\u([a-f\d]{4})/gi;
+            var match = unicode.exec(name);
+            while (match) {
+                name = name.replace(match[0], String.fromCharCode(parseInt(match[1], 16)));
+                match = unicode.exec(name);
+            }
+        }
+
+        parsedResult.name = name;
 
         var paramSeparator = /^\s*,\s*/g;
         paramSeparator.lastIndex = 0;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list