Skip to content

Autocorrect apostrophes not respecting colon #15

Description

@ochief

If you include a colon in front of a word in the dictionary it correctly only modifies the word if that word has a 'word break' in front of it. For words with an apostrophe it seems to ignore the word break.

Repro steps;

  1. Add the following to autocorrection_dict.txt

:htere -> there
:cant -> can't

  1. Run the python file and compile firmware

  2. Type " htere"

     Expected result: there
     Actual result: there
     Result: WORKING
    
  3. Type "testhtere"

    Expected result: testhtere
    Actual result: testhtere
    Result: WORKING
    
  4. Type " cant"

    Expected result: can't
    Actual result: can't
    Result: WORKING
    
  5. Type " testcant"

    Expected result: testcant
    Actual result: testcan't
    Result: BROKEN
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions