Index: Source/devtools/front_end/workspace/UISourceCode.js |
diff --git a/Source/devtools/front_end/workspace/UISourceCode.js b/Source/devtools/front_end/workspace/UISourceCode.js |
index 1b374623fc42f589f914df608d9aaf80055a6e1d..1bdbaf13094909464db5820b783d8c4d487ec234 100644 |
--- a/Source/devtools/front_end/workspace/UISourceCode.js |
+++ b/Source/devtools/front_end/workspace/UISourceCode.js |
@@ -520,12 +520,7 @@ WebInspector.UISourceCode.prototype = { |
*/ |
extension: function() |
{ |
- var lastIndexOfDot = this._name.lastIndexOf("."); |
- var extension = lastIndexOfDot !== -1 ? this._name.substr(lastIndexOfDot + 1) : ""; |
- var indexOfQuestionMark = extension.indexOf("?"); |
- if (indexOfQuestionMark !== -1) |
- extension = extension.substr(0, indexOfQuestionMark); |
- return extension; |
+ return WebInspector.TextUtils.extension(this._name); |
}, |
/** |