From 7b850e73394b82b46a59e0910bc4edc9553f9161 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Wed, 22 Oct 2014 13:22:12 +0100 Subject: [PATCH] stackexchange.js: Exclude "review" and "users" path from URL regexp None of the mode's features apply to these subpaths, so we exclude them. Also adds emacs.stackexchange.com site (and others). --- modules/page-modes/stackexchange.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/page-modes/stackexchange.js b/modules/page-modes/stackexchange.js index e85e7a4..883ebbf 100644 --- a/modules/page-modes/stackexchange.js +++ b/modules/page-modes/stackexchange.js @@ -89,7 +89,7 @@ define_key(stackexchange_keymap, "O", "stackexchange-favorite-question"); ].map(function (x) define_key(stackexchange_keymap, x, null, $fallthrough)); define_keymaps_page_mode("stackexchange-mode", - /^https?:\/\/(?:www.|meta.)?(stackoverflow|serverfault|superuser|stackapps)\.(?:com)\//, + /^https?:\/\/(?:www\.|meta\.)?(stackoverflow|[a-z]+\.stackexchange|serverfault|superuser|stackapps)\.(?:com)\/(?!review|users)/, { normal: stackexchange_keymap }, $display_name = "StackExchange"); -- 2.11.4.GIT