Minor fixes, update tests
This commit is contained in:
parent
ce5cbaeb87
commit
2536370cd7
|
@ -134,10 +134,8 @@ proc getTombstone*(js: JsonNode): string =
|
||||||
result.removeSuffix(" Learn more")
|
result.removeSuffix(" Learn more")
|
||||||
|
|
||||||
proc getSource*(js: JsonNode): string =
|
proc getSource*(js: JsonNode): string =
|
||||||
let
|
let src = js{"source"}.getStr
|
||||||
raw_src = js["source"].getStr
|
result = src.substr(src.find('>') + 1, src.rfind('<') - 1)
|
||||||
src = raw_src.substr(raw_src.find('>') + 1, raw_src.rfind('<') - 1)
|
|
||||||
return src
|
|
||||||
|
|
||||||
proc extractSlice(js: JsonNode): Slice[int] =
|
proc extractSlice(js: JsonNode): Slice[int] =
|
||||||
result = js["indices"][0].getInt ..< js["indices"][1].getInt
|
result = js["indices"][0].getInt ..< js["indices"][1].getInt
|
||||||
|
|
|
@ -11,7 +11,7 @@ card = [
|
||||||
['nim_lang/status/1136652293510717440',
|
['nim_lang/status/1136652293510717440',
|
||||||
'Version 0.20.0 released',
|
'Version 0.20.0 released',
|
||||||
'We are very proud to announce Nim version 0.20. This is a massive release, both literally and figuratively. It contains more than 1,000 commits and it marks our release candidate for version 1.0!',
|
'We are very proud to announce Nim version 0.20. This is a massive release, both literally and figuratively. It contains more than 1,000 commits and it marks our release candidate for version 1.0!',
|
||||||
'nim-lang.org', True],
|
'nim-lang.org', False],
|
||||||
|
|
||||||
['voidtarget/status/1094632512926605312',
|
['voidtarget/status/1094632512926605312',
|
||||||
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too)',
|
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too)',
|
||||||
|
@ -25,11 +25,6 @@ card = [
|
||||||
]
|
]
|
||||||
|
|
||||||
no_thumb = [
|
no_thumb = [
|
||||||
['Bountysource/status/1141879700639215617',
|
|
||||||
'Post a bounty on kivy/plyer!',
|
|
||||||
'Automation and Screen Reader Support',
|
|
||||||
'bountysource.com'],
|
|
||||||
|
|
||||||
['brent_p/status/1088857328680488961',
|
['brent_p/status/1088857328680488961',
|
||||||
'Hts Nim Sugar',
|
'Hts Nim Sugar',
|
||||||
'hts-nim is a library that allows one to use htslib via the nim programming language. Nim is a garbage-collected language that compiles to C and often has similar performance. I have become very...',
|
'hts-nim is a library that allows one to use htslib via the nim programming language. Nim is a garbage-collected language that compiles to C and often has similar performance. I have become very...',
|
||||||
|
|
Loading…
Reference in New Issue