1// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5var regex = /sandwich/gi;
6matches = document.body.innerText.match(regex);
7if (matches) {
8  var payload = {
9    count: matches.length    // Pass the number of matches back.
10  };
11  chrome.extension.sendRequest(payload, function(response) {});
12}
13