bare-url 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-url",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "URL parser for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [
Binary file
Binary file
Binary file
Binary file
@@ -585,7 +585,7 @@ url__parse (url_t *url, const utf8_string_view_t input, const url_t *base) {
585
585
  // https://url.spec.whatwg.org/#scheme-state
586
586
  case url_state_scheme:
587
587
  while (url__is_in_character_set(url__scheme_character_set, c)) {
588
- c = pointer < n ? input.data[++pointer] : -1;
588
+ c = pointer + 1 < n ? input.data[++pointer] : -1;
589
589
  }
590
590
 
591
591
  if (c == 0x3a) {