diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 12b53740..ef68e5b7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -23,7 +23,7 @@ If applicable, add screenshots to help explain your problem. **Versions** - OS: [e.g. macos, linux] - - Version [e.g. v0.18.0] + - Version [e.g. v0.18.1] **Additional context** Add any other context about the problem here. diff --git a/shard.yml b/shard.yml index ae13032e..02a9853a 100644 --- a/shard.yml +++ b/shard.yml @@ -1,6 +1,6 @@ # Project Metadata name: noir -version: 0.18.0 +version: 0.18.1 authors: - hahwul - ksg97031 diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 419ed1cf..509ef861 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,6 +1,6 @@ name: noir base: core20 -version: 0.18.0 +version: 0.18.1 summary: Attack surface detector that identifies endpoints by static analysis. description: | Noir is an open-source project specializing in identifying attack surfaces for enhanced whitebox security testing and security pipeline. diff --git a/src/noir.cr b/src/noir.cr index 31402f1a..d4e1e712 100644 --- a/src/noir.cr +++ b/src/noir.cr @@ -6,7 +6,7 @@ require "./options.cr" require "./techs/techs.cr" module Noir - VERSION = "0.18.0" + VERSION = "0.18.1" end # Run options parser diff --git a/src/passive_scan/detect.cr b/src/passive_scan/detect.cr index b451d838..f2552f0d 100644 --- a/src/passive_scan/detect.cr +++ b/src/passive_scan/detect.cr @@ -52,13 +52,13 @@ module NoirPassiveScan case matcher.condition when "and" begin - matcher.patterns && matcher.patterns.all? { |pattern| content.match(Regex.new(pattern.to_s)) } + matcher.patterns && matcher.patterns.all? { |pattern| content.match(Regex.new(pattern.to_s)) } rescue false - end + end when "or" begin - matcher.patterns && matcher.patterns.any? { |pattern| content.match(Regex.new(pattern.to_s)) } + matcher.patterns && matcher.patterns.any? { |pattern| content.match(Regex.new(pattern.to_s)) } rescue false end