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

Desktop: Enforce that whitespace check for unindent checks the begining of the string #3515

Merged
merged 2 commits into from
Jul 22, 2020

Conversation

CalebJohn
Copy link
Collaborator

Current behaviour is that if a Shift+Tab is pressed on a list item that is not indented, then it will mangle the start of the line

example

- something
- something // Shift+Tab

--->

- something
- - mething

This I was checking for whitespace but not enforcing that the check had to be at the start of a string. meaning - matched as true when it should not have. This fix updates the regex to enforce whitespace at the start.

@tessus tessus added desktop All desktop platforms editor labels Jul 18, 2020
@laurent22
Copy link
Owner

Makes sense, thanks for the fix!

1 similar comment
@laurent22
Copy link
Owner

Makes sense, thanks for the fix!

@laurent22 laurent22 merged commit 0fa8dfa into laurent22:master Jul 22, 2020
@CalebJohn CalebJohn deleted the unindent branch July 22, 2020 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop All desktop platforms editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants