You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
As we know, using String.substring method will cause problems if you are having emojis in the string. There are many articles in the web, such as dart-lang/sdk#35798. Users should replace s.substring(100,200) with s.characters.getRange(100,200).
What type of rule is this?
Warns about a potential problem
Example code
s.substring(100,200); // LINT
### Participation
- [ ] I am willing to submit a pull request to implement this rule.
### Additional comments
_No response_
The text was updated successfully, but these errors were encountered:
Rule details
As we know, using String.substring method will cause problems if you are having emojis in the string. There are many articles in the web, such as dart-lang/sdk#35798. Users should replace
s.substring(100,200)
withs.characters.getRange(100,200)
.What type of rule is this?
Warns about a potential problem
Example code
The text was updated successfully, but these errors were encountered: