Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for regex (0.11 sec)

  1. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

        return try {
          URI(uri)
        } catch (e: URISyntaxException) {
          // Unlikely edge case: the URI has a forbidden character in the fragment. Strip it & retry.
          try {
            val stripped = uri.replace(Regex("[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]"), "")
            URI.create(stripped)
          } catch (e1: Exception) {
            throw RuntimeException(e) // Unexpected!
          }
        }
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
Back to top