Fix text field spell check causing exception on ** text #1465
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
This is a small PR which fixes the error described in #1464. As mentioned in the original issue, this is caused by Flutter's spell checking engine. For now, I've disabled spell checking until a fix is confirmed from upstream.
Additional Info:
![image](https://private-user-images.githubusercontent.com/30667958/342110996-70320a56-cd8a-46d3-a0ac-7ec275f61ee5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTg1NDIsIm5iZiI6MTczOTYxODI0MiwicGF0aCI6Ii8zMDY2Nzk1OC8zNDIxMTA5OTYtNzAzMjBhNTYtY2Q4YS00NmQzLWEwYWMtN2VjMjc1ZjYxZWU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDExMTcyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjNGU0ZjY5NWExMWE5ZWU4NzQxZWI0NjQ0N2Q3NzA5NTg2YTE5YTQwM2MzOWIzNTdiNTI0YTY0NTNjYTE2NDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KmKzo6omW3ViK02Kq1MR1uL2ZlML9XxMoQaNrR7idn8)
![image](https://private-user-images.githubusercontent.com/30667958/342110825-f2cbb82e-8cfb-4a39-ac71-f729ed4e0638.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTg1NDIsIm5iZiI6MTczOTYxODI0MiwicGF0aCI6Ii8zMDY2Nzk1OC8zNDIxMTA4MjUtZjJjYmI4MmUtOGNmYi00YTM5LWFjNzEtZjcyOWVkNGUwNjM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDExMTcyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU0MmYzYzc2MWU3NmJiZjgwNDYzYjJiZGFmYmNjYzdjNWY1ZWM5ODhhZDE3NTQ1MGU1NTZmZmY0NjEwM2QzMjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.yav0yGSLkoDMP5b0gkjo_CnL1IShzLUv9iaX3MHq8Pc)
This is the stack trace (the exception doesn't explicitly print out the stack trace in the console):
The issue most likely comes from
final RegExp currentSpanTextRegexp = RegExp('\\b$currentSpanText\\b');
influtter/lib/src/widgets/spell_check.dart
.Issue Being Fixed
Issue Number: #1464
Screenshots / Recordings
Checklist
semanticLabel
s where applicable for accessibility?