Skip to content

Conversation

@MS-elug
Copy link

@MS-elug MS-elug commented Mar 5, 2018

…bugger because of sourceURL format

sourceURL += fileName;
}

code = ['/*\n * File: ', fileName, '\n */\narguments[1].res=', code, '\n//# sourceURL=', sourceURL].join('');
Copy link
Member

Choose a reason for hiding this comment

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

I would not do these changes in this file, because it is possible that fileName is already a full URL. It would be better to change things before in the call stack.

Copy link
Author

Choose a reason for hiding this comment

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

To match you comment I think the best is to test the provided URL againt a location RegExp, what do you think ?

Copy link
Author

Choose a reason for hiding this comment

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

hmm then I'm thinking again about your comment, that would be better to do it directly in AT

Copy link
Author

Choose a reason for hiding this comment

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

@divdavem what do you think if I make the change directly in https://github.com/ariatemplates/ariatemplates/blob/master/src/aria/Aria.js#L1651 ?
With a RegExp I can check if srcURL don't match an absolute URL pattern, in that case I add the current location to the URL.

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.

2 participants