fix: minor typos (#651)

This commit is contained in:
Julien 2020-08-04 11:21:50 +02:00 committed by GitHub
parent ae0086cf94
commit b07b2e3a5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -137,7 +137,7 @@
"yarn", "yarn",
"zig" "zig"
], ],
"knownExtentions": { "knownExtensions": {
".ahk": { "image": "ahk" }, ".ahk": { "image": "ahk" },
".ahkl": { "image": "ahk" }, ".ahkl": { "image": "ahk" },
"androidmanifest.xml": { "image": "android" }, "androidmanifest.xml": { "image": "android" },

View file

@ -4,7 +4,7 @@ import * as vsls from 'vsls';
import RPCClient from '../client/RPCClient'; import RPCClient from '../client/RPCClient';
import lang from '../data/languages.json'; import lang from '../data/languages.json';
const knownExtentions: { [key: string]: { image: string } } = lang.knownExtentions; const knownExtensions: { [key: string]: { image: string } } = lang.knownExtensions;
const knownLanguages: string[] = lang.knownLanguages; const knownLanguages: string[] = lang.knownLanguages;
const empty = '\u200b\u200b'; const empty = '\u200b\u200b';
@ -77,8 +77,8 @@ export default class Activity implements Disposable {
const filename = basename(window.activeTextEditor.document.fileName); const filename = basename(window.activeTextEditor.document.fileName);
largeImageKey = largeImageKey =
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
knownExtentions[ knownExtensions[
Object.keys(knownExtentions).find((key) => { Object.keys(knownExtensions).find((key) => {
if (filename.endsWith(key)) return true; if (filename.endsWith(key)) return true;
const match = /^\/(.*)\/([mgiy]+)$/.exec(key); const match = /^\/(.*)\/([mgiy]+)$/.exec(key);
if (!match) return false; if (!match) return false;