         return [] unless options?.editor? and options?.buffer? and options?.cursor?
         prefix = options.prefix
 
-        if (!(/^[a-z0-9.\"\' ]$/i).test(prefix[prefix.length - 1]) or prefix.indexOf('..') != -1) and !@force
+        if prefix.endsWith(';') or prefix.indexOf('..') != -1 or !prefix.length
             @documentationView.hide()
             return []
 

        @documentationView.show()

    forceCompletion: ->
        @force = true
        @autocompletePlus.autocompleteManager.runAutocompletion()
        @force = false

    forceCancel: ->
        @autocompletePlus.autocompleteManager.hideSuggestionList()

    disposables: null
    documentationView = null
    maxItems = null
    # automcomplete-plus
    autocompletePlus = null
    id: 'atom-ternjs-provider'
    selector: '.source.js'
    blacklist: '.source.js .comment'

    init: (client, documentationView) ->
        atom.packages.activatePackage('autocomplete-plus')
