mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: case sensitive unconditional add of exact match in user search
This commit is contained in:
@@ -145,7 +145,7 @@ class Autospec::Manager
|
||||
# try focus tag
|
||||
if failed_specs.length > 0
|
||||
filename,_ = failed_specs[0].split(":")
|
||||
if filename && File.exist?(filename)
|
||||
if filename && File.exist?(filename) && !File.directory?(filename)
|
||||
spec = File.read(filename)
|
||||
start,_ = spec.split(/\S*#focus\S*$/)
|
||||
if start.length < spec.length
|
||||
|
||||
Reference in New Issue
Block a user