Created
April 26, 2023 03:21
-
-
Save f3ath/12a57b51d41d8ca228bb7be05126121d to your computer and use it in GitHub Desktop.
Dart RegExp character class and surrogate pairs CLI vs Web
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
print(RegExp(r'a[^x]b', unicode: true).hasMatch('a\uD800\uDD01b')); // true in Web, false in CLI | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment