hsluoyz commented on issue #276:
URL: https://github.com/apache/casbin-cpp/issues/276#issuecomment-6537119744

   Thanks for the detailed report. Fixed in 
https://github.com/apache/casbin-cpp/commit/000b31f03a01d4c18a8481d72940256ff1b16cc8
   
   `EscapeAssertion` now skips single- and double-quoted literals and only 
rewrites `r`/`p` tokens (optionally numbered) that follow start-of-string, 
whitespace, a parenthesis, a comma or an operator. Quotes are handled by 
scanning rather than by the regex alone, so literals with spaces such as 
`"hello p.world"` are also left unchanged. The table cases above are added to 
`TestEscapeAssertion`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to