mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:08:00 +01:00
use \S rather than a negated \s character set in patterns
This commit is contained in:
@@ -164,7 +164,7 @@ liberator.Editor = function () //{{{
|
||||
return;
|
||||
}
|
||||
|
||||
var matches = args.match(/^([^\s]+)(?:\s+(.+))?$/);
|
||||
var matches = args.match(/^(\S+)(?:\s+(.+))?$/);
|
||||
var [lhs, rhs] = [matches[1], matches[2]];
|
||||
if (rhs)
|
||||
liberator.editor.addAbbreviation(mode, lhs, rhs);
|
||||
|
||||
Reference in New Issue
Block a user