File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,10 @@ class WebpackSPDXPlugin {
203203 const match = source . match ( / a s s e t \/ i n l i n e \| d a t a : i m a g e \/ s v g \+ x m l , ( .+ ) / )
204204 if ( match ) {
205205 const content = decodeURI ( match [ 1 ] )
206+ // REUSE-IgnoreStart
206207 const [ , license ] = content . match ( / S P D X - L i c e n s e - I d e n t i f i e r : \s * ( [ ^ \s ] + ) / ) ?? [ ]
207208 const [ , author ] = content . match ( / S P D X - F i l e C o p y r i g h t T e x t : \s * ( [ ^ - ] + ) / ) ?? [ ]
209+ // REUSE-IgnoreEnd
208210 if ( author && license ) {
209211 authors . add ( author )
210212 licenses . add ( license )
@@ -219,10 +221,14 @@ class WebpackSPDXPlugin {
219221 }
220222
221223 for ( const author of [ ...authors ] . sort ( ) ) {
224+ // REUSE-IgnoreStart
222225 output = `SPDX-FileCopyrightText: ${ author } \n${ output } `
226+ // REUSE-IgnoreEnd
223227 }
224228 for ( const license of [ ...licenses ] . sort ( ) ) {
229+ // REUSE-IgnoreStart
225230 output = `SPDX-License-Identifier: ${ license } \n${ output } `
231+ // REUSE-IgnoreEnd
226232 }
227233
228234 compilation . emitAsset (
You can’t perform that action at this time.
0 commit comments