_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 + ")";
*/
_parseFileQuery: function(query)
{
- var match = query.match(/^(-)?file:/);
+ var match = query.match(/^(-)?f(ile)?:/);
if (!match)
return null;
var isNegative = !!match[1];