mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-15 00:23:31 +01:00
Fix 'smartcase'.
This commit is contained in:
@@ -28,7 +28,7 @@ const RangeFinder = Module("rangefinder", {
|
|||||||
let highlighted = this.rangeFind && this.rangeFind.highlighted;
|
let highlighted = this.rangeFind && this.rangeFind.highlighted;
|
||||||
let selections = this.rangeFind && this.rangeFind.selections;
|
let selections = this.rangeFind && this.rangeFind.selections;
|
||||||
let regexp = false;
|
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"];
|
let linksOnly = options["linksearch"];
|
||||||
|
|
||||||
str = str.replace(/\\(.|$)/g, function (m, n1) {
|
str = str.replace(/\\(.|$)/g, function (m, n1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user