Sort on save not working for edge cases
See original GitHub issueMight have something to do with the released feature in #161
Consider this code where font-custom
is a custom font family defined in the config.
<a-col class="font-custom text-15px font-bold leading-20px">
Hello World
</a-col>
When sorting this code (either via on save or manually) is this the result.
<a-col class="font-custom font-bold font-bold leading-20px">
Hello World
</a-col>
The font size has been replaced incorrectly and there are now duplicate classes present.
Please not that if the classes are recorded might some other combination or duplication of classes happen. In other words, the sorting is not consistent between runs.
Extension version: v0.20.1
EDIT: It looks like the problem happens when a class name that is last in the list needs to be moved.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Are these the sort of edge cases I should think of when using ...
Your edge case tests are: Save a string of 49 characters - success; Save a string of 50 characters - success (or perhaps...
Read more >Algorithms: Common edge cases in JS | by Jeremy Gottfried
1. Accepted data structure. The first major edge case is the unaccepted data structure. My bubble sort algorithm only works predictably for ...
Read more >U4-10646 - Sorting nodes in edge cases can lead to blanking ...
U4-10646 - Sorting nodes in edge cases can lead to blanking out of property data ... The sort dialog currently allows you to...
Read more >Common Microsoft Edge Problems, and How to Fix Them
Having trouble with Microsoft Edge? You may run into issues with the maturing browser, so we provided a list of possible problems and...
Read more >Don't Forget The Edge Cases - GeeksforGeeks
Let's make it a bit more easy, by assuming that test for input data type is already in place, so you receive only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@IgnisDa for my test project I use, where it also breaks:
should be fixed in 0.21.0