Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed persisting infinite loop on $" #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clockworked247
Copy link

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.

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.
---
@clockworked247
Copy link
Author

Hey Mike,

I went ahead and tried my hand at fixing the persisting $" issue with the XQuery mode parser. The change appears to fix the described uses of that string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant