From 64f3ee483b2148c773a404ca296836f7259a9670 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 24 Feb 2023 22:08:49 +0100 Subject: mre: move minimal reproducible examples to develop branch Instead of having them in separate orphan branches. --- mre/mre_similar_tags_caps/gallery.yaml | 2 + mre/mre_similar_tags_caps/readme.md | 49 ++++++++++++++++++++++++ mre/mre_similar_tags_caps/test.md | 0 mre/mre_similar_tags_caps/test.md.yaml | 2 + mre/mre_similar_tags_caps/test_with_caps.md | 0 mre/mre_similar_tags_caps/test_with_caps.md.yaml | 2 + 6 files changed, 55 insertions(+) create mode 100644 mre/mre_similar_tags_caps/gallery.yaml create mode 100644 mre/mre_similar_tags_caps/readme.md create mode 100644 mre/mre_similar_tags_caps/test.md create mode 100644 mre/mre_similar_tags_caps/test.md.yaml create mode 100644 mre/mre_similar_tags_caps/test_with_caps.md create mode 100644 mre/mre_similar_tags_caps/test_with_caps.md.yaml (limited to 'mre/mre_similar_tags_caps') diff --git a/mre/mre_similar_tags_caps/gallery.yaml b/mre/mre_similar_tags_caps/gallery.yaml new file mode 100644 index 0000000..8cbc96b --- /dev/null +++ b/mre/mre_similar_tags_caps/gallery.yaml @@ -0,0 +1,2 @@ +includedFiles: +- '*.md' diff --git a/mre/mre_similar_tags_caps/readme.md b/mre/mre_similar_tags_caps/readme.md new file mode 100644 index 0000000..1a00e52 --- /dev/null +++ b/mre/mre_similar_tags_caps/readme.md @@ -0,0 +1,49 @@ +# Minimal Reproducible Example + +Having two or more similar tags which differ only in their casing results in +the lowercase variant to be inserted instead of the other ones. + +## Reproduction steps + +1. Type `Test` in the tag input box and press enter. + +## Expected result + +The tag `Test` (starting with a capital letter) should be added to the search +query. + +## Actual result + +The tag `test` (starting with a lower case letter) is instead added to the +search query. + +## Version info + +Bug present in ldgallery v2.2. + +--- + +Having two or more similar tags which differ only in their casing results in +unrequested insertions in the query. + +## Reproduction steps + +1. Type `test` in the tag input box and press enter. +2. Press the enter key or click on the "Search" button, + one or multiple times! + +## Expected result + +It should just search for items with the `test` tag and display the result. + +## Actual result + +The tag `Test` is added to the input field even though it was never requested. +Trying to search again results in more instances of `test` and `Test` to be +added to the search field. + +No result is found because the resulting "forced" search query is wrong. + +## Version info + +Bug present in ldgallery v2.2. diff --git a/mre/mre_similar_tags_caps/test.md b/mre/mre_similar_tags_caps/test.md new file mode 100644 index 0000000..e69de29 diff --git a/mre/mre_similar_tags_caps/test.md.yaml b/mre/mre_similar_tags_caps/test.md.yaml new file mode 100644 index 0000000..997a5f6 --- /dev/null +++ b/mre/mre_similar_tags_caps/test.md.yaml @@ -0,0 +1,2 @@ +tags: +- test diff --git a/mre/mre_similar_tags_caps/test_with_caps.md b/mre/mre_similar_tags_caps/test_with_caps.md new file mode 100644 index 0000000..e69de29 diff --git a/mre/mre_similar_tags_caps/test_with_caps.md.yaml b/mre/mre_similar_tags_caps/test_with_caps.md.yaml new file mode 100644 index 0000000..a654d10 --- /dev/null +++ b/mre/mre_similar_tags_caps/test_with_caps.md.yaml @@ -0,0 +1,2 @@ +tags: +- Test -- cgit v1.2.3