diff options
author | kitsunyan | 2018-04-21 08:45:28 +0000 |
---|---|---|
committer | kitsunyan | 2018-04-21 08:45:28 +0000 |
commit | 276d8b9b1dd15f3c6fdf6c44f2bab35713a98b74 (patch) | |
tree | c148fa4762514c978cba324f853ce748883968ff /src/aur.nim | |
parent | b2b9a8324f1c65d15fa5dac7d8d4e9dd734f8c65 (diff) |
Replace "seq[T]" with "List[T]" where suitable
Diffstat (limited to 'src/aur.nim')
-rw-r--r-- | src/aur.nim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/aur.nim b/src/aur.nim index 42762f6..837dea7 100644 --- a/src/aur.nim +++ b/src/aur.nim @@ -1,5 +1,5 @@ import - future, json, options, re, sequtils, sets, strutils, tables, + future, json, lists, options, re, sequtils, sets, strutils, tables, package, utils, "wrapper/curl" @@ -180,13 +180,13 @@ proc downloadAurComments*(base: string): (seq[AurComment], Option[string]) = .replace(""", "\"") .replace("&", "&") - proc findAllMatches(start: int, found: seq[AurComment]): seq[AurComment] = + proc findAllMatches(start: int, found: List[AurComment]): List[AurComment] = var matches: array[3, string] let index = content.find(commentRe, matches, start) if index >= 0: - findAllMatches(index + 1, found & (matches[0].strip, matches[1].strip, - transformComment(matches[2]))) + findAllMatches(index + 1, (matches[0].strip, matches[1].strip, + transformComment(matches[2])) ^& found) else: found - (findAllMatches(0, @[]), none(string)) + (toSeq(findAllMatches(0, nil).reversed.items), none(string)) |