diff --git a/src/plugins/qmljsinspector/qmljsclientproxy.cpp b/src/plugins/qmljsinspector/qmljsclientproxy.cpp
index b8a20d44e80f310b456fd5279d53681d0a7b034f..5387367112c277be3747e66b3beae0c52a1042be 100644
--- a/src/plugins/qmljsinspector/qmljsclientproxy.cpp
+++ b/src/plugins/qmljsinspector/qmljsclientproxy.cpp
@@ -419,7 +419,7 @@ void ClientProxy::buildDebugIdHashRecursive(const QDeclarativeDebugObjectReferen
     int rev = 0;
 
     // handle the case where the url contains the revision number encoded. (for object created by the debugger)
-    static QRegExp rx("^file://(.*)_(\\d+):(\\d+)$");
+    static QRegExp rx("(.*)_(\\d+):(\\d+)$");
     if (rx.exactMatch(filename)) {
         filename = rx.cap(1);
         rev = rx.cap(2).toInt();