Permalink
Browse files

fix base path regexp

  • Loading branch information...
1 parent 2c8c6c3 commit feee8bc07576b7b86e9de8ae66d70190b373e05d @ncri committed Dec 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/ajaxify_rails/version.rb
  2. +1 −1 vendor/assets/javascripts/ajaxify_rails.js.coffee
View
2 lib/ajaxify_rails/version.rb
@@ -1,3 +1,3 @@
module AjaxifyRails
- VERSION = "0.1.6"
+ VERSION = "0.1.7"
end
View
2 vendor/assets/javascripts/ajaxify_rails.js.coffee
@@ -89,7 +89,7 @@ base_path_regexp = ->
# starting with base path and continuing with '?', e.g. "^\/en\?" (i.e. we are at the base path root and have query params)
base_path_regexp_cache = new RegExp("^\/(#{ $.map(base_paths, (el) ->
el = regexp_escape el
- "##{el}($|\/|\\?)"
+ "#{el}($|\/|\\?)"
).join('|')})", 'i')

0 comments on commit feee8bc

Please sign in to comment.