texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: js/info.js (config.LOCAL_HTML_PAGE_PATTERN): Hand


From: Per Bothner
Subject: branch master updated: js/info.js (config.LOCAL_HTML_PAGE_PATTERN): Handle local links.
Date: Tue, 27 Apr 2021 20:17:17 -0400

This is an automated email from the git hooks/post-receive script.

bothner pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new a0c80b4  js/info.js (config.LOCAL_HTML_PAGE_PATTERN): Handle local 
links.
a0c80b4 is described below

commit a0c80b4dbf061c5060d5971279db1dc1bd428e4c
Author: Per Bothner <per@bothner.com>
AuthorDate: Tue Apr 27 17:16:51 2021 -0700

    js/info.js (config.LOCAL_HTML_PAGE_PATTERN): Handle local links.
    
    I.e. links like "#foo" on the same page.
---
 ChangeLog  | 3 +++
 js/info.js | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 324ed86..d4fe5a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2021-04-27  Per Bothner  <per@bothner.com>
 
+       * js/info.js (config.LOCAL_HTML_PAGE_PATTERN): Handle local links.
+       I.e. links like "#foo" on the same page.
+
        * js/info.js (cache_index_links): Fix thinko alink->link.
 
 2021-04-27  Per Bothner  <per@bothner.com>
diff --git a/js/info.js b/js/info.js
index ac0d11f..fb45ecc 100644
--- a/js/info.js
+++ b/js/info.js
@@ -33,7 +33,7 @@
     MAIN_ANCHORS: ["Top"],
     WARNING_TIMEOUT: 3000,
     SCREEN_MIN_WIDTH: 700,
-    LOCAL_HTML_PAGE_PATTERN: "[^:/]*[.](html|htm|xhtml)([#].*)?$",
+    LOCAL_HTML_PAGE_PATTERN: "^([^:/]*[.](html|htm|xhtml))?([#].*)?$",
     SHOW_SIDEBAR_HTML: '<span class="hide-icon">&#x21db;</span>',
     HIDE_SIDEBAR_HTML: '<span class="hide-icon">&#x21da;</span><span 
class="hide-text">Hide sidebar</span>',
     SHOW_SIDEBAR_TOOLTIP: 'Show navigation sidebar',



reply via email to

[Prev in Thread] Current Thread [Next in Thread]