mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:48:00 +01:00
use \S rather than a negated \s character set in patterns
This commit is contained in:
@@ -664,7 +664,7 @@ liberator.Buffer = function () //{{{
|
||||
"Add or list user styles",
|
||||
function (args, special)
|
||||
{
|
||||
let [, filter, css] = args.match(/([^\s]+)\s*((?:.|\n)*)/) || [];
|
||||
let [, filter, css] = args.match(/(\S+)\s*((?:.|\n)*)/) || [];
|
||||
if (!css)
|
||||
{
|
||||
let str = liberator.template.tabular(["", "Filter", "CSS"],
|
||||
@@ -1832,8 +1832,8 @@ liberator.Marks = function () //{{{
|
||||
let list = liberator.template.tabular(["mark", "line", "col", "file"],
|
||||
["", "text-align: right", "text-align: right", "color: green"],
|
||||
([mark[0],
|
||||
Math.round(mark[1].position.x & 100) + "%",
|
||||
Math.round(mark[1].position.y & 100) + "%",
|
||||
Math.round(mark[1].position.x & 100) + "%",
|
||||
Math.round(mark[1].position.y & 100) + "%",
|
||||
mark[1].location]
|
||||
for each (mark in marks)));
|
||||
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
|
||||
|
||||
Reference in New Issue
Block a user