Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Extension verifier doesn't check for dot. (minor issue) #245

Open
leewz opened this issue May 30, 2018 · 1 comment
Open

Extension verifier doesn't check for dot. (minor issue) #245

leewz opened this issue May 30, 2018 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@leewz
Copy link

leewz commented May 30, 2018

For example, the Studio accepts "adhoc" as having a valid C extension, because it ends with a "c". Strangely, the C file will be created as "adhoc.c", making the check unnecessary. This is because it's a simple suffix check. ("adhoc.cppc" will also be created as "adhoc.cppc.c".)

The intended check may be:

  • If the file DOES have an extension, make sure it's correct.
  • If it doesn't, add an extension.
@yurydelendik yurydelendik added help wanted Extra attention is needed good first issue Good for newcomers labels May 31, 2018
@Rupeshiya
Copy link

@leewz So instead of returning error message ,It is expected to return 'filename.c' ??

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants