filiph / linkcheck

Fast link checker
https://pub.dartlang.org/packages/linkcheck
MIT License
403 stars 51 forks source link

Unable to process links from file that include brackets #115

Open SBFSA opened 1 year ago

SBFSA commented 1 year ago

I get the following error trying to check links with brackets in them.

λ linkcheck -i links2.txt
INTERNAL ERROR: Sorry! Please open https://github.com/filiph/linkcheck/issues/new in your favorite browser and copy paste the following output there:

Error on line 1, column 77: unexpected "("
  ╷
1 │ //domain.tld/path/to/file/File_Name_Causing_Error_(with_brackets).pdf%22**
  │                                                                             ^
  ╵
#0      StringScanner.error (package:string_scanner/src/string_scanner.dart:263:5)
#1      Parser._parseLiteral (package:glob/src/parser.dart:169:44)
#2      Parser._parseNode (package:glob/src/parser.dart:66:12)
#3      Parser._parseSequence (package:glob/src/parser.dart:44:17)
#4      Parser.parse (package:glob/src/parser.dart:30:27)
#5      new Glob (package:glob/glob.dart:104:44)
#6      new UriGlob (package:linkcheck/src/uri_glob.dart:26:20)
#7      crawl.<anonymous closure> (package:linkcheck/src/crawl.dart:52:44)
#8      MappedIterator.moveNext (dart:_internal/iterable.dart:391:20)
#9      new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189:27)
#10     new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#11     new List.of (dart:core-patch/array_patch.dart:51:28)
#12     Iterable.toList (dart:core/iterable.dart:470:12)
#13     crawl (package:linkcheck/src/crawl.dart:52:59)
#14     run (package:linkcheck/linkcheck.dart:277:24)
#15     main.<anonymous closure> (file:///home/runner/work/linkcheck/linkcheck/bin/linkcheck.dart:9:22)
#16     _rootRun (dart:async/zone.dart:1391:13)
#17     _CustomZone.run (dart:async/zone.dart:1293:19)
#18     _runZoned (dart:async/zone.dart:1829:10)
#19     runZonedGuarded (dart:async/zone.dart:1817:12)
#20     main (file:///home/runner/work/linkcheck/linkcheck/bin/linkcheck.dart:7:9)
#21     _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:32)
#22     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)