diff options
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 22070084..2f30d47a 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -43,7 +43,8 @@ settings =    values: {}    loadedValues: 0    valuesToLoad: ["scrollStepSize", "linkHintCharacters", "filterLinkHints", "hideHud", "previousPatterns", -      "nextPatterns", "findModeRawQuery", "userDefinedLinkHintCss", "helpDialog_showAdvancedCommands"] +      "nextPatterns", "findModeRawQuery", "regexFindMode", "userDefinedLinkHintCss", +      "helpDialog_showAdvancedCommands"]    isLoaded: false    eventListeners: {} @@ -572,13 +573,16 @@ updateFindModeQuery = ->    # the query can be treated differently (e.g. as a plain string versus regex depending on the presence of    # escape sequences. '\' is the escape character and needs to be escaped itself to be used as a normal    # character. here we grep for the relevant escape sequences. -  findModeQuery.isRegex = false +  findModeQuery.isRegex = settings.get 'regexFindMode'    hasNoIgnoreCaseFlag = false    findModeQuery.parsedQuery = findModeQuery.rawQuery.replace /\\./g, (match) ->      switch (match)        when "\\r"          findModeQuery.isRegex = true          return "" +      when "\\R" +        findModeQuery.isRegex = false +        return ""        when "\\I"          hasNoIgnoreCaseFlag = true          return "" | 
