1
0
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:
Doug Kearns
2007-11-16 12:48:03 +00:00
parent fea5cceecc
commit f50bca0453
9 changed files with 44 additions and 45 deletions

View File

@@ -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])