mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-09 20:07:35 +01:00
Fix some :h news issues, document ;A.
This commit is contained in:
@@ -126,7 +126,7 @@ var Help = Module("Help", {
|
||||
| (?: ^ [^\S\n]* \n) +
|
||||
]]>), "gmxy");
|
||||
|
||||
let betas = util.regexp(/\[(b\d)\]/, "gx");
|
||||
let betas = util.regexp(/\[((?:b|rc)\d)\]/, "gx");
|
||||
|
||||
let beta = array(betas.iterate(NEWS))
|
||||
.map(function (m) m[1]).uniq().slice(-1)[0];
|
||||
|
||||
@@ -258,7 +258,7 @@ var Template = Module("Template", {
|
||||
linkifyHelp: function linkifyHelp(str, help) {
|
||||
let re = util.regexp(<![CDATA[
|
||||
(?P<pre> [/\s]|^)
|
||||
(?P<tag> '[\w-]+' | :(?:[\w-]+!?|!) | (?:._)?<[\w-]+>\w* | \b[a-zA-Z]_(?:\w+|.) | \[[\w-]+\] | E\d{3} )
|
||||
(?P<tag> '[\w-]+' | :(?:[\w-]+!?|!) | (?:._)?<[\w-]+>\w* | \b[a-zA-Z]_(?:[\w[\]]+|.) | \[[\w-;]+\] | E\d{3} )
|
||||
(?= [[\)!,:;./\s]|$)
|
||||
]]>, "gx");
|
||||
return this.highlightSubstrings(str, (function () {
|
||||
|
||||
Reference in New Issue
Block a user