We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c41df9c commit e3b8d87Copy full SHA for e3b8d87
src/scripts/uri.js
@@ -39,6 +39,23 @@ var URIPrototype = function(uri_prop_name)
39
40
}, this);
41
42
+ this.__defineGetter__("extension", function()
43
+ {
44
+
45
+ if (!this._extension && (this._is_parsed || this[uri_prop_name]))
46
47
+ var pos = this.filename.lastIndexOf(".");
48
+ if (pos > -1)
49
+ this._extension = this.filename.slice(pos + 1);
50
+ else
51
+ this._extension = "";
52
+ }
53
54
+ return this._extension;
55
+ });
56
57
+ this.__defineSetter__("extension", function() {});
58
59
this.__defineGetter__("filename", function()
60
{
61
0 commit comments