Skip to content

Conversation

@dannyvassallo
Copy link
Contributor

Issue #, if available: N/A

Description of changes:

Missed replacing with a slash and fixed messy logic


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

const fileIndex = parseInt(index, 10) - 1;
const fileName = dataNames[fileIndex];
return fileName ? fileName.split(isWindows ? '\\' : '/').join('') : match;
return fileName ? (isWindows ? fileName.split('\\').join('/') : fileName) : match;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the only real change. The rest is just style

@dannyvassallo dannyvassallo merged commit f524f86 into aws-cloudformation:main Jul 15, 2024
@dannyvassallo dannyvassallo deleted the filename branch July 15, 2024 14:53
dannyvassallo added a commit to dannyvassallo/cloudformation-guard that referenced this pull request Jul 15, 2024
joshfried-aws pushed a commit to joshfried-aws/cloudformation-guard that referenced this pull request Nov 22, 2024
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.

3 participants