Bug 1418666 - Bug 1411699 follow-up: Fix regex typo causing commas to be missing from feed content. r=jorgk a=jorgk
authoralta88 <alta88@gmail.com>
Sun, 19 Nov 2017 07:44:00 +0100
changeset 29382 213382307782599fb20d6bbaef38eb4c50cb296b
parent 29381 b622c91383b8d1420b86786fbd8048461f846979
child 29383 1dd5a1fc29d3ac51d039fd4723b34f04c2b28d0b
push id2073
push usermozilla@jorgk.com
push dateTue, 21 Nov 2017 11:24:20 +0000
treeherdercomm-beta@c1f5d46aa961 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk, jorgk
bugs1418666, 1411699
Bug 1418666 - Bug 1411699 follow-up: Fix regex typo causing commas to be missing from feed content. r=jorgk a=jorgk
mailnews/extensions/newsblog/content/feed-parser.js
--- a/mailnews/extensions/newsblog/content/feed-parser.js
+++ b/mailnews/extensions/newsblog/content/feed-parser.js
@@ -1092,28 +1092,28 @@ FeedParser.prototype =
   /**
    * Remove unprintable ascii, particularly CR/LF, for non formatted tag values.
    *
    * @param {String} s - String to clean.
    * @return {String}
    */
   removeUnprintableASCII: function(s)
   {
-    return s ? s.replace(/[\x00-\x1F,\x7F]+/g, "") : "";
+    return s ? s.replace(/[\x00-\x1F\x7F]+/g, "") : "";
   },
 
   /**
    * Remove unprintable ascii, except CR/LF/TAB, for formatted tag values.
    *
    * @param {String} s - String to clean.
    * @return {String}
    */
   removeUnprintableASCIIexCRLFTAB: function(s)
   {
-    return s ? s.replace(/[\x00-\x08,\x0B-\x0C,\x0E-\x1F,\x7F]+/g, "") : "";
+    return s ? s.replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F]+/g, "") : "";
   },
 
   stripTags: function(someHTML)
   {
     return someHTML ? someHTML.replace(/<[^>]+>/g, "") : someHTML;
   },
 
   xmlUnescape: function(s)