Skip to content

Conversation

zth
Copy link
Member

@zth zth commented Nov 11, 2023

We handled namespace file modules before, but other "exotic" file modules could still appear (example: SomeTest.test.res) which can't be used anyway. This filters anything with illegal characters in the name, for file modules specifically.

@zth zth requested a review from cristianoc November 11, 2023 20:39
if String.length s = 0 then s
else String.mapi (fun i c -> if i = 0 then Char.lowercase_ascii c else c) s

let hasUnallowedChars s =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unclear this is about file names by just looking at the code.

@zth zth force-pushed the filter-out-illegal-names branch from 8fa57d9 to 7619c0c Compare November 13, 2023 07:55
@zth zth merged commit 4731805 into master Nov 13, 2023
@zth zth deleted the filter-out-illegal-names branch November 13, 2023 08:16
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