1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 18:55:46 +01:00

Fix 'smartcase'.

This commit is contained in:
Kris Maglione
2010-12-03 19:32:49 -05:00
parent 252e7450f1
commit ad54306603

View File

@@ -28,7 +28,7 @@ const RangeFinder = Module("rangefinder", {
let highlighted = this.rangeFind && this.rangeFind.highlighted;
let selections = this.rangeFind && this.rangeFind.selections;
let regexp = false;
let matchCase = !(options["ignorecase"] || options["smartcase"] && !/[A-Z]/.test(str));
let matchCase = options["smartcase"] && /[A-Z]/.test(str) || !options["ignorecase"];
let linksOnly = options["linksearch"];
str = str.replace(/\\(.|$)/g, function (m, n1) {