diff --git a/Userland/Applications/TextEditor/FileArgument.cpp b/Userland/Applications/TextEditor/FileArgument.cpp index a0772c053c..732889c48c 100644 --- a/Userland/Applications/TextEditor/FileArgument.cpp +++ b/Userland/Applications/TextEditor/FileArgument.cpp @@ -15,12 +15,6 @@ FileArgument::FileArgument(String file_argument) m_line = {}; m_column = {}; - if (Core::File::exists(file_argument)) { - // A file exists with the full specified name, don't attempt to parse it. - m_filename = move(file_argument); - return; - } - // A file doesn't exist with the full specified name, maybe the user entered line/column coordinates? Regex re("^(.+?)(:([0-9]+):?([0-9]+)?)?$"); RegexResult result = match(file_argument, re, PosixFlags::Global | PosixFlags::Multiline | PosixFlags::Ungreedy);