summaryrefslogtreecommitdiffstats
path: root/callagent
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-09-05 14:23:05 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-09-05 14:23:05 +0200
commitf13639d443c3ab54dacd4b5b0995205e9fa753ca (patch)
tree8f0e6c1d6808d2e497d706251abf4f3c0320ef6d /callagent
parente7c75b7dcd54350d8f3f7b1eb5f8c212fe1832cf (diff)
misc: Use separatedBy: for the beauty of reading it, no big win
Diffstat (limited to 'callagent')
-rw-r--r--callagent/parser/SIPParser.st8
1 files changed, 4 insertions, 4 deletions
diff --git a/callagent/parser/SIPParser.st b/callagent/parser/SIPParser.st
index bbc42b3..5435f7e 100644
--- a/callagent/parser/SIPParser.st
+++ b/callagent/parser/SIPParser.st
@@ -167,10 +167,10 @@ SIPGrammar subclass: SIPParser [
^super challenge => [:nodes |
| d |
d := Dictionary new.
-
- (nodes at: 4) do:
- [:each | d at: each second first put: each second third ].
- d at: (nodes at: 3) first put: (nodes at: 3) third.
+ (nodes at: 2) do: [:each |
+ "Skip the separator for now until we have withoutSeparators"
+ each isCharacter ifFalse: [
+ d at: each first put: each third]].
d]
]