dotnet / dotnet/vblang

Bug with smart quotes in a string

Open
#503 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

@KathleenDollard , @AnthonyDGreen
We just found a bug in VB.Net.

VB supports smart quotes around a string, so the following is a valid statement
Dim x = "bla bla “” bla bal" 'All smart quotes - this compiles.

But it returns:
bla bla " bla bal
The quote returned is a NORMAL - NON SMART quote.

This causes a problem where smart quotes can not be used in strings.

A proper way to handle this is that it would add the second quote to the string, as the first one is the escaper of the used quote.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.