Permalink
Browse files

Added a tests with newline characters

  • Loading branch information...
1 parent 78a5a95 commit 45cc9a8b6b51c5d9327d39d8a9659ccdc9efc6b8 @laktek committed Oct 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests.js
View
@@ -18,6 +18,8 @@ var cases = [
[["red blue green", "{first} {second} {third}", { whitespace: 1 }], {"first": "red", "second": "blue", "third": "green" }],
+ [["red\n blue\n\ngreen", "{first}\n{second}\n{third}", { whitespace: 1 }], {"first": "red", "second": "blue", "third": "green" }],
+
[["from 4th October to 10th October", "from `from` to `to`", { whitespace: 1, delimiters: ["`", "`"] }], {"from": "4th October", "to": "10th October" }],
[["4th October to 10th October", "from `from` to `to`", { whitespace: 1, delimiters: ["`", "`"] }], null],

0 comments on commit 45cc9a8

Please sign in to comment.