mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 21:37:58 +01:00
use RegExp#test in preference to String#match
This commit is contained in:
@@ -484,7 +484,7 @@ vimperator.CommandLine = function () //{{{
|
||||
[completion_start_index, completions] = res;
|
||||
|
||||
// sort the completion list
|
||||
if (vimperator.options["wildoptions"].search(/\bsort\b/) > -1)
|
||||
if (/\bsort\b/.test(vimperator.options["wildoptions"]))
|
||||
{
|
||||
completions.sort(function (a, b) {
|
||||
if (a[0] < b[0])
|
||||
|
||||
Reference in New Issue
Block a user