Expected Behavior
Do not throw syntax error
Actual Behavior
Throw "Uncaught SyntaxError: Invalid or unexpected token (at spectrum-icons-color.js:1:61)"
New lines is injected inside a single quote string literal
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Inject in a page spectrum lib withdata-coral-icons-external equal to js:
<script src="/path/to/@adobe/coral-spectrum/dist/js/coral.min.js" data-coral-icons-external="js" defer></script>
<link rel="stylesheet" href="/path/to/@adobe/coral-spectrum/dist/css/coral.min.css">
Browser name/version/os (ie Chrome Version 62.0.3202.94 (Official Build) (64-bit) MacOS)
Coral Spectrum version
4.15.23
Sample Code that illustrates the problem (use the Playground if possible)
Sample code in Playground
Screenshots (if applicable)
Expected Behavior
Do not throw syntax error
Actual Behavior
Throw "Uncaught SyntaxError: Invalid or unexpected token (at spectrum-icons-color.js:1:61)"
New lines is injected inside a single quote string literal
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Inject in a page spectrum lib with
data-coral-icons-externalequal tojs:Browser name/version/os (ie Chrome Version 62.0.3202.94 (Official Build) (64-bit) MacOS)
Coral Spectrum version
4.15.23
Sample Code that illustrates the problem (use the Playground if possible)
Sample code in Playground
Screenshots (if applicable)