Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / workspace / SearchConfig.js
index b8a6a36..70ac7d6 100644 (file)
@@ -64,11 +64,11 @@ WebInspector.SearchConfig.prototype = {
 
     _parse: function()
     {
-        var filePattern = "-?file:(([^\\\\ ]|\\\\.)+)"; // After file: prefix: any symbol except space and backslash or any symbol escaped with a backslash.
+        var filePattern = "-?f(ile)?:(([^\\\\ ]|\\\\.)+)"; // After file: prefix: any symbol except space and backslash or any symbol escaped with a backslash.
         var quotedPattern = "\"(([^\\\\\"]|\\\\.)+)\""; // Inside double quotes: any symbol except double quote and backslash or any symbol escaped with a backslash.
 
         // A word is a sequence of any symbols except space and backslash or any symbols escaped with a backslash, that does not start with file:.
-        var unquotedWordPattern = "((?!-?file:)[^\\\\ ]|\\\\.)+";
+        var unquotedWordPattern = "((?!-?f(ile)?:)[^\\\\ ]|\\\\.)+";
         var unquotedPattern = unquotedWordPattern + "( +" + unquotedWordPattern + ")*"; // A word or several words separated by space(s).
 
         var pattern = "(" + filePattern + ")|(" + quotedPattern + ")|(" + unquotedPattern + ")";
@@ -146,7 +146,7 @@ WebInspector.SearchConfig.prototype = {
      */
     _parseFileQuery: function(query)
     {
-        var match = query.match(/^(-)?file:/);
+        var match = query.match(/^(-)?f(ile)?:/);
         if (!match)
             return null;
         var isNegative = !!match[1];