aziznal/dart-import-sorter

line ending symbols bug

Closed this issue · 2 comments

When looking for app name extension splits package.yaml by '/n', but does not remove '/r' therefore breaking app name detection
i.e. 'name: app_test' becomes 'app_test/r'

I fixed it by wrapping return in getProjectNameFromPubspecFile with Utils.removeNewLines

image

I see. I appreciate your contribution. Would you like to create a PR with the fix? Your name will appear in the contributors section that way.

Sure, pushed a PR here
#45