Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-370: Do not cast the path to POSIX style #418

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

mrmlnc
Copy link
Owner

@mrmlnc mrmlnc commented Aug 4, 2023

What is the purpose of this pull request?

Addressed to several issues: #370, #379.

The main purpose of these changes is to stop casting the path to POSIX style (even on Windows) when the absolute option is enabled.

Current cases:

What changes did you make? (Give an overview)

export function flattenHeavilyConcatenatedString(input: string): string {
// @ts-expect-error Another solution can be `.trim`, but it changes the string.
// eslint-disable-next-line @typescript-eslint/no-unused-expressions, no-bitwise, unicorn/prefer-math-trunc
input | 0;

Check warning

Code scanning / CodeQL

Expression has no effect

This expression has no effect.
@mrmlnc mrmlnc force-pushed the ISSUE-370_absolute_normalize branch from f6262ae to 9917ede Compare August 4, 2023 09:41
@mrmlnc mrmlnc marked this pull request as ready for review August 4, 2023 10:12
@mrmlnc mrmlnc merged commit 1b251fa into master Aug 4, 2023
@mrmlnc mrmlnc deleted the ISSUE-370_absolute_normalize branch August 4, 2023 10:14
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.

1 participant