1
0
mirror of https://github.com/Lightcord/Lightcord.git synced 2025-04-12 00:55:40 +02:00

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

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

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

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

@ -33,7 +33,7 @@ export default class ApiPreview extends React.PureComponent {
</formModule.FormText>
<MarginTop></MarginTop>
<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}>
Documentation
</Lightcord.Api.Components.inputs.Button>

8
package-lock.json generated

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