File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
repository/Grease-Pharo110-Slime.package/GRAnsiStringsRule.class/instance Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,14 @@ initialize
1313 replace: ' `@string includesSubstring: `@subString'
1414 with: ' (`@string indexOfSubCollection: `@subString startingAt: 0) ~= 0' ;
1515 replace: ' ``@string findTokens: ``@arg' byEvaluating: [ :node |
16- | argument |
17- argument := node arguments first.
16+ | argument newNode |
17+ newNode := node copy.
18+ argument := newNode arguments first.
1819 argument isLiteralNode ifTrue: [
1920 argument value isArray
2021 ifTrue: [ argument replaceWith: (RBLiteralNode value: (String withAll: argument value)) ].
2122 argument value isCharacter
2223 ifTrue: [ argument replaceWith: (RBLiteralNode value: (String with: argument value)) ] ].
23- node
24+ newNode
2425 selector: #subStrings: ;
2526 yourself ]
You can’t perform that action at this time.
0 commit comments