-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(assists): raw string <-> usual string manipulation #1850
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
Conversation
uh, I don't know what I've done with git Oo EDIT: fixed |
cf96735
to
ce4d843
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
Thanks!
let start_of_inside = usual_string_range.start().to_usize() + 1; | ||
let end_of_inside = usual_string_range.end().to_usize(); | ||
let inside_str = &text[start_of_inside..end_of_inside]; | ||
let escaped = inside_str.escape_default().to_string(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I haven't realized that we can lean on escape_default here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me neither x) I was looking on what's available to achieve the work and stumble upon this :D
1850: feat(assists): raw string <-> usual string manipulation r=matklad a=Geobert Fixes #1730 Co-authored-by: Geobert Quach <[email protected]>
Build succeeded |
Fixes #1730