fix paste regexes

This commit is contained in:
dada513 2022-06-21 11:59:52 +02:00
parent b95975ba03
commit 1e00de4c95
No known key found for this signature in database
GPG key ID: 403448C14FA4B33E
3 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
const reg = /https:\/\/0x0.st\/[^ ]*/; const reg = /https:\/\/0x0.st\/\w*/;
export async function read0x0(s: string): Promise<null | string> { export async function read0x0(s: string): Promise<null | string> {
const r = s.match(reg); const r = s.match(reg);

View file

@ -1,4 +1,4 @@
const reg = /https:\/\/mclo.gs\/[^ ]*/; const reg = /https:\/\/mclo.gs\/\w*/;
export async function readMcLogs(s: string): Promise<null | string> { export async function readMcLogs(s: string): Promise<null | string> {
const r = s.match(reg); const r = s.match(reg);

View file

@ -48,7 +48,10 @@ const versionAnalyzer: Analyzer = async (text) => {
const flatpakNvidiaAnalyzer: Analyzer = async (text) => { const flatpakNvidiaAnalyzer: Analyzer = async (text) => {
if ( if (
text.includes('org.lwjgl.LWJGLException: Could not choose GLX13 config') text.includes('org.lwjgl.LWJGLException: Could not choose GLX13 config') ||
text.includes(
'GLFW error 65545: GLX: Failed to find a suitable GLXFBConfig'
)
) { ) {
return [ return [
'Outdated Nvidia Flatpak Driver', 'Outdated Nvidia Flatpak Driver',