watson-ruby icon indicating copy to clipboard operation
watson-ruby copied to clipboard

Can Win/Mac have dir + file with same name in same dir? [lib/watson/config.rb]

Open nhmood opened this issue 11 years ago • 0 comments

filename : lib/watson/config.rb line # : 346 tag : review md5 : 4d923a34cb0a917a31a6a74ed9bd30c9

                # [review] - Can Win/Mac have dir + file with same name in same dir?
                _mtch = _line.match(/^((\w+)?\.?\/?)+/)[0]
                if !_mtch.empty?
                    @ignore_list.push(_mtch) 
                    debug_print "#{ _mtch } added to @ignore_list\n"
                end
                debug_print "@ignore_list --> #{ @ignore_list }\n"

            when "github_api"
                # No need for regex on API key, GitHub setup should do this properly
                # Chomp to get rid of any nonsense
                @github_api = _line.chomp!
                debug_print "GitHub API: #{ @github_api }\n"

            when "github_repo"

nhmood avatar Nov 21 '13 16:11 nhmood