File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -780,9 +780,11 @@ def to_dict(
780
780
Return a "result" scan data built from a LicenseMatch object.
781
781
"""
782
782
matched_text = None
783
+ matched_text_diagnostics = None
784
+
783
785
if include_text :
784
786
if license_text_diagnostics :
785
- matched_text = self .matched_text (whole_lines = False , highlight = True )
787
+ matched_text_diagnostics = self .matched_text (whole_lines = False , highlight = True )
786
788
else :
787
789
if whole_lines :
788
790
matched_text = self .matched_text (whole_lines = True , highlight = False )
@@ -806,6 +808,8 @@ def to_dict(
806
808
807
809
if include_text :
808
810
result ['matched_text' ] = matched_text
811
+ if license_text_diagnostics :
812
+ result ['matched_text_diagnostics' ] = matched_text_diagnostics
809
813
return result
810
814
811
815
def get_highlighted_text (self , trace = TRACE_HIGHLIGHTED_TEXT ):
You can’t perform that action at this time.
0 commit comments