diff --git a/app/assets/javascripts/discourse/components/user-selector.js.es6 b/app/assets/javascripts/discourse/components/user-selector.js.es6 index e7a9c2527a3..99bfeba07c0 100644 --- a/app/assets/javascripts/discourse/components/user-selector.js.es6 +++ b/app/assets/javascripts/discourse/components/user-selector.js.es6 @@ -4,6 +4,10 @@ import userSearch from 'discourse/lib/user-search'; import { findRawTemplate } from 'discourse/lib/raw-templates'; export default TextField.extend({ + autocorrect: false, + autocapitalize: false, + name: 'user-selector', + @observes('usernames') _update() { if (this.get('canReceiveUpdates') === 'true') diff --git a/app/assets/javascripts/discourse/lib/user-search.js.es6 b/app/assets/javascripts/discourse/lib/user-search.js.es6 index 36612631f53..6361ea92138 100644 --- a/app/assets/javascripts/discourse/lib/user-search.js.es6 +++ b/app/assets/javascripts/discourse/lib/user-search.js.es6 @@ -61,7 +61,7 @@ function organizeResults(r, options) { if (r.groups) { r.groups.every(function(g) { - if (results.length > limit && options.term !== g.name) return false; + if (results.length > limit && options.term.toLowerCase() !== g.name.toLowerCase()) return false; if (exclude.indexOf(g.name) === -1) { groups.push(g); results.push(g); diff --git a/lib/autospec/manager.rb b/lib/autospec/manager.rb index 8421f9d7139..cd9c779190c 100644 --- a/lib/autospec/manager.rb +++ b/lib/autospec/manager.rb @@ -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 diff --git a/test/javascripts/lib/user-search-test.js.es6 b/test/javascripts/lib/user-search-test.js.es6 index 662aa6d626f..fba45e9ff73 100644 --- a/test/javascripts/lib/user-search-test.js.es6 +++ b/test/javascripts/lib/user-search-test.js.es6 @@ -58,7 +58,7 @@ module("lib:user-search", { }); test("it places groups unconditionally for exact match", function() { - return userSearch({term: 'team'}).then((results)=>{ + return userSearch({term: 'Team'}).then((results)=>{ equal(results[results.length-1]["name"], "team"); }); });