false positive

This commit is contained in:
Jean Ouina 2020-09-20 14:16:02 +02:00
parent 1eab906bf9
commit 9809c564b4
7 changed files with 14 additions and 20 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -35,14 +35,13 @@ export default new class PluginCertifier {
const tests = [ const tests = [
[/token/gi, 0, 0], [/token/gi, 0, 0],
[/email/gi, 0, 0], [/email/gi, 0, 0],
[/mfa/gi, 0, 0], [/mfa\./gi, 0, 0],
[/2fa/gi, 0, 0], [/2fa/gi, 0, 0],
[/phone/gi, 0, 0], [/phone/gi, 0, 0],
[/child_process/gi, 0, 0], [/child_process/gi, 0, 0],
[/localStorage/gi, 0, 0], [/localStorage/gi, 0, 0],
[/getGlobal/gi, 0, 0], [/getGlobal/gi, 0, 0],
[/BrowserWindow/gi, 0, 0], [/BrowserWindow/gi, 0, 0],
[/\.exe/gi, 0, 1],
[/system32/gi, 0, 0], [/system32/gi, 0, 0],
[/password/gi, 0, 0], [/password/gi, 0, 0],
[/eval/gi, 0, 0], [/eval/gi, 0, 0],

View File

@ -169,12 +169,10 @@ PluginModule.prototype.reload = function(name) {
}; };
PluginModule.prototype.edit = function(filenameOrName) { PluginModule.prototype.edit = function(filenameOrName) {
console.log("Edit " + filenameOrName);
const bdplugin = Object.values(bdplugins).find(p => p.filename == filenameOrName) || bdplugins[filenameOrName]; const bdplugin = Object.values(bdplugins).find(p => p.filename == filenameOrName) || bdplugins[filenameOrName];
if (!bdplugin) return; if (!bdplugin) return;
const fullPath = require("path").resolve(ContentManager.pluginsFolder, bdplugin.filename); const fullPath = require("path").resolve(ContentManager.pluginsFolder, bdplugin.filename);
console.log("Edit " + fullPath); require("electron").shell.openExternal(`${fullPath}`);
require("electron").shell.openItem(`${fullPath}`);
}; };
PluginModule.prototype.updatePluginList = function() { PluginModule.prototype.updatePluginList = function() {

View File

@ -129,7 +129,7 @@ ThemeModule.prototype.edit = function(filenameOrName) {
const bdplugin = Object.values(bdthemes).find(p => p.filename == filenameOrName) || bdthemes[filenameOrName]; const bdplugin = Object.values(bdthemes).find(p => p.filename == filenameOrName) || bdthemes[filenameOrName];
if (!bdplugin) return; if (!bdplugin) return;
const fullPath = require("path").resolve(ContentManager.themesFolder, bdplugin.filename); const fullPath = require("path").resolve(ContentManager.themesFolder, bdplugin.filename);
require("electron").shell.openItem(`${fullPath}`); require("electron").shell.openExternal(`${fullPath}`);
}; };
ThemeModule.prototype.updateThemeList = function() { ThemeModule.prototype.updateThemeList = function() {

View File

@ -33,7 +33,7 @@ export default class ApiPreview extends React.PureComponent {
</formModule.FormText> </formModule.FormText>
<MarginTop></MarginTop> <MarginTop></MarginTop>
<Lightcord.Api.Components.inputs.Button color="brand" look="outlined" size="medium" hoverColor="green" onClick={() => { <Lightcord.Api.Components.inputs.Button color="brand" look="outlined" size="medium" hoverColor="green" onClick={() => {
remote.shell.openExternal("https://lightcord.deroku.xyz/LightcordApi/docs") remote.shell.openExternal("https://lightcord.deroku.xyz/LightcordApi/")
}} wrapper={false}> }} wrapper={false}>
Documentation Documentation
</Lightcord.Api.Components.inputs.Button> </Lightcord.Api.Components.inputs.Button>

8
package-lock.json generated
View File

@ -2104,13 +2104,13 @@
} }
}, },
"roarr": { "roarr": {
"version": "2.15.3", "version": "2.15.4",
"resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.3.tgz", "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",
"integrity": "sha512-AEjYvmAhlyxOeB9OqPUzQCo3kuAkNfuDk/HqWbZdFsqDFpapkTjiw+p4svNEoRLvuqNTxqfL+s+gtD4eDgZ+CA==", "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==",
"dev": true, "dev": true,
"optional": true, "optional": true,
"requires": { "requires": {
"boolean": "^3.0.0", "boolean": "^3.0.1",
"detect-node": "^2.0.4", "detect-node": "^2.0.4",
"globalthis": "^1.0.1", "globalthis": "^1.0.1",
"json-stringify-safe": "^5.0.1", "json-stringify-safe": "^5.0.1",