Skip to content

Feature/optional filename validation#421

Merged
hackjutsu merged 5 commits intohackjutsu:masterfrom
sunxyw:feature/optional-filename-validation
May 30, 2020
Merged

Feature/optional filename validation#421
hackjutsu merged 5 commits intohackjutsu:masterfrom
sunxyw:feature/optional-filename-validation

Conversation

@sunxyw
Copy link
Contributor

@sunxyw sunxyw commented May 18, 2020

Make filename validation more flexible for special use cases.

I have added a switch option "validateFilename" under the "editor" in .leptonrc.

e.g. In your <homeDir>/.leptonrc

"editor": {
    "tabSize": 4,
    "validateFilename": true
},

Filename validation will be disable when "validateFilename" switch to false.

Tested on Windows10, but not tested on other platforms.

@sunxyw
Copy link
Contributor Author

sunxyw commented May 22, 2020

I have moved the "required" check out of the the if (conf.get('editor').validateFilename) block.
And I have deleted some unrelated files, includes yarn-error.log, and the binary file.

Please feel free to tell me if it still has some problems or any improvement.

@hackjutsu hackjutsu merged commit 4a8cd97 into hackjutsu:master May 30, 2020
@hackjutsu
Copy link
Owner

@sunxyw Thanks for the contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants