Skip to content

Commit 2fa804b

Browse files
committed
Fix failure to identify source map file when last line ends in newline
1 parent e3019a1 commit 2fa804b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

projectsystem/Sourcemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_sourcemap_file(file_name):
1717
sourcemap_info.strip()
1818
index = sourcemap_info.find(sourcemap_prefix)
1919
if index == 0:
20-
map_file = sourcemap_info[len(sourcemap_prefix):]
20+
map_file = sourcemap_info[len(sourcemap_prefix):].strip()
2121
map_file = os.path.dirname(file_name) + os.path.sep + map_file
2222
logger.info(' Found %s' % (sourcemap_info))
2323
f.close()

tests/assets/app.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)