Created with <3 with dartpad.dev.
Created
September 20, 2022 15:52
-
-
Save mit-mit/212d4ece3f15ffea212d87d34f841338 to your computer and use it in GitHub Desktop.
tangled-durian-7940
This file contains 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() { | |
final urlString = "http://example.com\\.google.com"; | |
final uri = Uri.parse(urlString); | |
print('Host: ${uri.host}'); | |
print('Ends with google.com: ${uri.host.endsWith('.google.com')}'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment