From 672ca19865be1a5dfc2a86908704624c2ff372dc Mon Sep 17 00:00:00 2001 From: jordanmontt Date: Sun, 20 Oct 2024 16:14:58 +0200 Subject: [PATCH] Using new method extractInteger for parsing instead of asInteger --- src/Microdown/MicOrderedListBlock.class.st | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microdown/MicOrderedListBlock.class.st b/src/Microdown/MicOrderedListBlock.class.st index b263fbb5..9ca8d9ca 100644 --- a/src/Microdown/MicOrderedListBlock.class.st +++ b/src/Microdown/MicOrderedListBlock.class.st @@ -69,5 +69,6 @@ MicOrderedListBlock >> startIndex [ { #category : 'accessing' } MicOrderedListBlock >> startIndexFrom: line [ startIndex ifNotNil: [ ^self ]. - startIndex := line asInteger + "an ordered list line starts with the index and after a dot '.' " + startIndex := line extractIntegerPart ]