Commit 8a29fa8f authored by csilv@chromium.org's avatar csilv@chromium.org

dom-ui settings: Change search regex to not search for word-boundaries to...

dom-ui settings: Change search regex to not search for word-boundaries to improve searchability and fix unicode searching.

BUG=70146
TEST=Verify that search works properly with CJK languages.
Review URL: http://codereview.chromium.org/6361011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72695 0039d316-1c4b-4281-b951-d872f2087c98
parent 5f673729
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
......@@ -241,7 +241,7 @@ cr.define('options', function() {
// Generate a regular expression and replace string for hilighting
// search terms.
var regEx = new RegExp('(\\b' + searchText + ')', 'ig');
var regEx = new RegExp('(' + searchText + ')', 'ig');
var replaceString = '<span class="search-highlighted">$1</span>';
// Initialize all sections. If the search string matches a title page,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment