Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * Return `true` is the [uriStr] represents a syntactically correct URI. | |
| 7 */ | |
| 8 bool isValidUri(String uriStr) { | |
|
Brian Wilkerson
2017/02/01 21:02:10
I can't see any uses of this function (probably ju
scheglov
2017/02/01 21:08:47
You're right, we don't use it.
I will remove the f
| |
| 9 try { | |
| 10 Uri.parse(uriStr); | |
| 11 return true; | |
| 12 } on FormatException { | |
| 13 return false; | |
| 14 } | |
| 15 } | |
| OLD | NEW |