fixed persisting infinite loop on $"

Tested with the following XQuery strings:

$"
---
"^/([\w\d_\-]*)/?(update|create|delete)\.?(\w*)/?$"
---
let $pattern := fn:concat("^$")
---
"\uxxxxx"
---

fn:analyze-string("http://nssdc.gsfc.nasa.gov/ontologies/spacecraft#launchDate"\i\c*$")/s:match/fn:string()
---
matches($path, "^/[^/?#]+/documents/?$")
Try to change "$path" to a new string with double-quotes. Chrome freaks
out, rendering the UI frozen and eventually bringing up the Kill
interface.
---