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 595d9f0 commit d58ecb7Copy full SHA for d58ecb7
src/data.preview.ts
@@ -149,7 +149,7 @@ export class DataPreview {
149
this._dataViews = (views !== undefined) ? views: {};
150
this._viewConfig = viewConfig;
151
this._fileName = path.basename(uri.fsPath);
152
- this._fileExtension = this._fileName.substr(this._fileName.lastIndexOf('.'));
+ this._fileExtension = path.extname(this._fileName); // file extension
153
this._previewUri = this._uri.with({scheme: 'data'});
154
155
// parse view config
0 commit comments