Support Unicode-strings in committers-autocomplete script
authorvestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Sep 2010 13:46:00 +0000 (13:46 +0000)
committervestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Sep 2010 13:46:00 +0000 (13:46 +0000)
Reviewed by Csaba Osztrogonác.

* committers-autocomplete.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@68249 268f45cc-cd09-0410-ab3c-d52691b4dbfc

BugsSite/ChangeLog
BugsSite/committers-autocomplete.js

index cfca68c..83ebe74 100644 (file)
@@ -1,3 +1,11 @@
+2010-09-24  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
+
+        Reviewed by Csaba Osztrogonác.
+
+        Support Unicode-strings in committers-autocomplete script
+
+        * committers-autocomplete.js:
+
 2010-09-22  Adam Barth  <abarth@webkit.org>
 
         Reviewed by John Sullivan.
index b2e20fd..5b5bbfc 100644 (file)
@@ -55,7 +55,7 @@ WebKitCommitters = (function() {
         var parsedResult = {};
 
         // full name
-        var param = /^\s*((\[[^\]]+\])|("[^"]+"))\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,7 @@ WebKitCommitters = (function() {
         record = record.substring(param.lastIndex);
 
         // Save the name without the quotes.
-        parsedResult.name = nameParam[0].slice(1, nameParam[0].length - 1);
+        parsedResult.name = nameParam[3].slice(1, nameParam[3].length - 1);
 
         var paramSeparator = /^\s*,\s*/g;
         paramSeparator.lastIndex = 0;