NodeSecure / js-x-ray

JavaScript & Node.js open-source SAST scanner. A static analyser for detecting most common malicious patterns 🔬.
MIT License
229 stars 26 forks source link

Bug#170 #206

Closed jean-michelet closed 9 months ago

jean-michelet commented 9 months ago

This PR addresses issue #170.

SourceFile counted the number of occurrences of morse code symbols, including doubles. minimatch@9.0.3 was considered a threat because of its high number of morse symbols occurrences: '.' and '..' in string concatenations.

I replaced the counter with a Set, thus avoiding duplicates.