mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Remove the decimal separator verification
This commit is contained in:
parent
c0cfe54c51
commit
14269495b3
1 changed files with 0 additions and 7 deletions
|
@ -157,13 +157,6 @@ bool CopyPasteManager::ValidatePasteExpression(String^ pastedText, ViewMode mode
|
||||||
|
|
||||||
wstring pasteExpression = pastedText->Data();
|
wstring pasteExpression = pastedText->Data();
|
||||||
|
|
||||||
// Verify if string contains the en-US digit separator if the local digit separator is a different one.
|
|
||||||
wchar_t localDigitSeparator = LocalizationSettings::GetInstance().GetDecimalSeparator();
|
|
||||||
if (localDigitSeparator != '.' && pasteExpression.find('.') != std::string::npos)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get english translated expression
|
// Get english translated expression
|
||||||
String^ englishString = LocalizationSettings::GetInstance().GetEnglishValueFromLocalizedDigits(pasteExpression);
|
String^ englishString = LocalizationSettings::GetInstance().GetEnglishValueFromLocalizedDigits(pasteExpression);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue