       value.indexOf(scope) isnt -1
     return selected.length > 0
 
-firstCharsEqual = (prefix, text) ->
+stringContains = (prefix, text) ->
   text.replace(/\W/g, '').toLowerCase().indexOf(prefix.toLowerCase()) == 0
 
   # scopesArray.indexOf(scope) isnt -1


  getConstantCompletions: ({prefix}) ->
    completions = []
    for constant, type of @constants when firstCharsEqual(prefix, constant)
      completions.push(@buildConstantCompletion(prefix, constant))
    completions


    displayText: constant
    replacementPrefix: prefix

# Helpers
hasScope = (scopesArray, scope) ->
  if scopesArray.indexOf(scope) isnt -1
    true
