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

Backport dataurl sourcemap support #1916

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sap.ui.core/src/jquery.sap.global.js
Original file line number Diff line number Diff line change
Expand Up @@ -3472,7 +3472,7 @@
// Note: sourcemap annotations URLs in eval'ed sources are resolved relative to the page, not relative to the source
if (sScript ) {
oMatch = /\/\/[#@] source(Mapping)?URL=(.*)$/.exec(sScript);
if ( oMatch && oMatch[1] && /[^/]+\.js\.map$/.test(oMatch[2]) ) {
if ( oMatch && oMatch[1] && /^(?!data:)[^/]+\.js\.map$/.test(oMatch[2]) ) {
// found a sourcemap annotation with a typical UI5 generated relative URL
sScript = sScript.slice(0, oMatch.index) + oMatch[0].slice(0, -oMatch[2].length) + URI(oMatch[2]).absoluteTo(oModule.url);
} else if ( !oMatch ) {
Expand Down