scripts/spdxcheck.py: fix C++ comment style detection
[sfrench/cifs-2.6.git] / scripts / spdxcheck.py
index 3fb020c2cb7f8803a342ce1eac28a7f88729f9c2..4fe392e507fb01f821512912c3c159a5953c71b3 100755 (executable)
@@ -177,7 +177,7 @@ class id_parser(object):
                     continue
                 expr = line.split(':')[1].strip()
                 # Remove trailing comment closure
-                if line.startswith('/*'):
+                if line.strip().endswith('*/'):
                     expr = expr.rstrip('*/').strip()
                 # Special case for SH magic boot code files
                 if line.startswith('LIST \"'):