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

      value.indexOf(scope) isnt -1
    return selected.length > 0

firstCharsEqual = (prefix, text) ->
  text.replace(/\W/g, '').toLowerCase().indexOf(prefix.toLowerCase()) == 0

  # scopesArray.indexOf(scope) isnt -1

    displayText: constant
    replacementPrefix: prefix

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