LuaFormatter icon indicating copy to clipboard operation
LuaFormatter copied to clipboard

formatting code results on backslash being cut from strings

Open ayoubfaouzi opened this issue 3 years ago • 0 comments

Hi @Koihik

Thanks for working this awesome project :heart:.

When single-quote-to-double-quote is set to true, formatting the code below results on the strings being modified, the last char \ being cut.

globals.regexIgnorePaths = {
    '^[a-z]:\\\\users\\\\.*\\\\appdata\\\\',
    '^[a-z]:\\\\users\\\\.*\\\\downloads\\\\',
}

becomes:

globals.regexIgnorePaths = {
    "^[a-z]:\\\\users\\\\.*\\\\appdata\\\",
    "^[a-z]:\\\\users\\\\.*\\\\downloads\\\",
}

ayoubfaouzi avatar Apr 26 '22 05:04 ayoubfaouzi