diff --git a/core/js/TiddlyWiki.js b/core/js/TiddlyWiki.js
index d97707e..7bb4070 100644
|
a
|
b
|
|
| 151 | 151 | return textOut.join(""); |
| 152 | 152 | }; |
| 153 | 153 | |
| 154 | | TiddlyWiki.prototype.slicesRE = /(?:^([\'\/]{0,2})~?([\.\w]+)\:\1\s*([^\n]+)\s*$)|(?:^\|([\'\/]{0,2})~?([\.\w]+)\:?\4\|\s*([^\|\n]+)\s*\|$)/gm; |
| | 154 | TiddlyWiki.prototype.slicesRE = /(?:^([\'\/]{0,2})~?([\.\w]+)\:\1[\t\x20]*([^\n]+)[\t\x20]*$)|(?:^\|([\'\/]{0,2})~?([\.\w]+)\:?\4\|[\t\x20]*([^\n]+)[\t\x20]*\|$)/gm; |
| 155 | 155 | |
| 156 | 156 | // @internal |
| 157 | 157 | TiddlyWiki.prototype.calcAllSlices = function(title) |
diff --git a/core/tests/jsspec/TiddlyWiki.jsspec.js b/core/tests/jsspec/TiddlyWiki.jsspec.js
index 8196a0c..dc669f4 100644
|
a
|
b
|
|
| 172 | 172 | value_of(actual).should_be(expected); |
| 173 | 173 | }, |
| 174 | 174 | |
| 175 | | |
| 176 | 175 | 'should ignore colons in slice values (colon notation)': function() { |
| 177 | 176 | var title = "tiddler"; |
| 178 | 177 | var text = "foo: bar: baz"; |
| … |
… |
|
| 197 | 196 | var expected = { "foo": "bar|baz" }; |
| 198 | 197 | value_of(actual).should_be(expected); |
| 199 | 198 | }, |
| 200 | | /*'should ignore additional columns (table notation)': function() { |
| | 199 | 'should allow pipes in slice values (table notation)': function() { |
| 201 | 200 | var title = "tiddler"; |
| 202 | 201 | var text = "|foo|bar|baz|"; |
| 203 | 202 | store.saveTiddler(title, title, text); |
| 204 | 203 | var actual = store.calcAllSlices(title); |
| 205 | | var expected = { foo: "bar" }; |
| | 204 | var expected = { "foo": "bar|baz" }; |
| 206 | 205 | value_of(actual).should_be(expected); |
| 207 | | },*/ |
| | 206 | }, |
| 208 | 207 | |
| 209 | 208 | 'should retrieve slices containing PrettyLinks (colon notation)': function() { |
| 210 | 209 | var title = "tiddler"; |