[Suggestion] Allow to escape dot character in modstitch-manifests
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- kotlin
- Domain
- build-system
Research direction
Start by locating how modstitch-manifests turns map keys containing dots into nested maps, then check the existing tests for that behavior. Add coverage for an escaped dot in a key; the change is done when escaped dots remain literal while unescaped dots still create nested maps.
Written by the indexing model from the issue text.
Description
Currently, when you use a dot in key in a map it gets turned into a new map:
val someInnerMap = mutableMapOf<String, String>()
someInnerMap["translation.key"] = "Something"
customData.put("some", someInnerMap)
// Outputs:
// {
// ..
// "custom": {
// "some": {
// "translation": {
// "key": "Something"
// }
// }
// }
But sometimes you need to have keys with dots, e. g. to add custom data for ModMenu
My Idea would be to add '\' as an escape character:
val someInnerMap = mutableMapOf<String, String>()
someInnerMap["translation\\.key"] = "Something"
customData.put("some", someInnerMap)
// Outputs:
// {
// ..
// "custom": {
// "some": {
// "translation.key": "Something"
// }
// }
this could be done with this regex: (?<!\\)\.
(which i found)
- Dominant language
- Kotlin
- Stars
- 10
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from isXander/modstitch-toolkit
-
[Suggestion] Add option to disable NeoForge target in multiloader for when NeoForge isn't availableOpen
Difficulty 3/5 1-2 days Newbie friendliness 62/100
-
Difficulty 1/5 Under an hour Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
All issues in isXander/modstitch-toolkit
Similar issues
-
Area: Java bug report needs triage OS: Windows
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
actions/runner-images#15458 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nwverse/persona#22164 · 1 comment ·
Maintainers usually reply within 1 day
-
WebWatcher: keyboard events still split visits in detected browsers (browserIsActiveWindow checks only the hard-coded list)Possibly taken @TimeToBuildBob claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ActivityWatch/aw-android#435 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
valkey-io/valkey-glide#8000 ·
Maintainers usually reply within 2 days