Closed NANI-SORE closed 2 years ago
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 https://github.com/aziznal/dart-import-sorter/pull/45
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
withUtils.removeNewLines