Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log improvements #75

Merged
merged 7 commits into from
Aug 1, 2023
Merged

Log improvements #75

merged 7 commits into from
Aug 1, 2023

Conversation

Jamalam360
Copy link
Contributor

  • Detects using FLK and Fabric API on Quilt.
  • Asks for crash reports, and general fixes relating to crash reports. Some regexes were updated and work as they did previously, but with support for crash reports (they were not parsing before for some reason)

This allows parsing crash report mod tables, it wasn't working before. The change doesn't break anything
This allows parsing crash report mod tables, it wasn't working before. The change doesn't break anything
@@ -13,7 +13,7 @@ import org.quiltmc.community.cozy.modules.logs.data.Order
import org.quiltmc.community.cozy.modules.logs.types.LogParser

private val PATTERNS = mapOf(
"\n\\|[\\s\\d]+\\| Quilt Loader\\s+\\| quilt_loader\\s+\\| (\\S+).+\n"
"\\| Quilt Loader\\s+\\| quilt_loader\\s+\\| (\\S+).+"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't this be replaced with a kotlin raw string to reduce the amount of escaping ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably. I don't think any other regexes use that but it would be an improvement to change them all

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but if any of them use $ we have to use this ugliness """${'$'}"""

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wait until you hear about kotlin backtick escaping allowing $`$` by referencing a variable instead of the long escape

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a blocking issue for this PR?

@sschr15 sschr15 merged commit 4a1d098 into QuiltMC:root Aug 1, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants