title: Why is this syntax error encountered in knockout-secure-binding
body: <p>I am using <a href="https://github.com/brianmhunt/knockout-secure-binding" rel="nofollow noreferrer">Knockout Secure Binding</a> (KSB) to make Knockout compatible with the content security policy in a Chrome browser extension.</p>
  
  <p>The following works with Knockout's default binder, where <code>plaintext</code> is an observable value that returns a string:</p>
  
  <pre class="lang-html prettyprint-override"><code> &lt;section data-bind="foreach: plaintext().match(/.{1,17}/g)"&gt;
  </code></pre>
  
  <p>But when attempting to apply the binding with KSB this error is logged to the console:</p>
  
  <pre class="lang-js prettyprint-override"><code>{
     name: "SyntaxError",
     message: "Expected ')' but got '/'",
     at: 28,
     text: "foreach: plaintext().match(/.{1,17}/g)"
  }
  </code></pre>
  
  <p>Since the <code>/</code> seemed to be the problem I tried creating the RegExp using this syntax instead:</p>
  
  <pre class="lang-html prettyprint-override"><code> &lt;section data-bind="foreach: plaintext().match(new RegExp('.{1,17}', 'g'))"&gt;
  </code></pre>
  
  <p>But KSB similarly complained, this time:</p>
  
  <pre class="lang-js prettyprint-override"><code>{
     name:"SyntaxError",
     message:"Expected ')' but got 'n'",
     at:28,
     text:"foreach: plaintext().match(new RegExp('.{1,17}', 'g'))"
  }
  </code></pre>
  
  <p>This suggests it's not going to accept anything at all within the parenthesis for <code>match()</code>.  In reading the docs and repo issues I haven't discovered anything about not using match or regex with KSB.  </p>
  
  <p>What am I missing here?</p>