Bug 829995 - Ignore case of .url extension when migrating bookmarks from Internet Explorer. r=felipe

This commit is contained in:
Matthew Noorenberghe 2013-01-16 18:39:46 -08:00
parent 5d3cffbde4
commit 0344b4c7a3

View File

@ -253,7 +253,7 @@ Bookmarks.prototype = {
else {
// Strip the .url extension, to both check this is a valid link file,
// and get the associated title.
let matches = entry.leafName.match(/(.+)\.url$/);
let matches = entry.leafName.match(/(.+)\.url$/i);
if (matches) {
let fileHandler = Cc["@mozilla.org/network/protocol;1?name=file"].
getService(Ci.nsIFileProtocolHandler);