Skip to content

Commit 8cdb76d

Browse files
author
HD Moore
committed
Switch to normal String API vs ActiveSupport method
1 parent 2dce6e6 commit 8cdb76d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/modules/loader/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def module_path?(path)
430430

431431
extension = File.extname(path)
432432

433-
unless (path.starts_with?('.') or
433+
unless (path[0,1] == ".") or
434434
extension != MODULE_EXTENSION or
435435
path =~ UNIT_TEST_REGEX)
436436
module_path = true

0 commit comments

Comments
 (0)