HWZT chapter 12 (Regexps): the example works in Scaffold 2.0 with no deltas (other than those described in chapter 11 above). To test, open Scaffold 2.0 on any page (e.g. the directions for opening for chapter 11 will work) and enter the code
function detectWeb(doc, url) {
var x = " 346 "
x = x.replace(/^\s*|\s*$/g, '');
Zotero.debug(x);
}
. Click on icon=“Run detectWeb” (the eye): in the Test Frame you should get results like
12:00:00 346