fix paste regexes
This commit is contained in:
parent
b95975ba03
commit
1e00de4c95
3 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue