diff options
author | David Tolnay <dtolnay@gmail.com> | 2015-08-22 12:18:13 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2015-08-22 12:31:36 -0700 |
commit | 6c3934de158d54672f94a1bfc1227b761d4caa10 (patch) | |
tree | 129ea0ac99024b5a37471875ecffedf988cc72bd /tests | |
parent | 370833d55573a223b60ea51b4cea7b6c0326e030 (diff) |
Fix decoding of UTF-8 sequence length (fix #922)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/onig.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/onig.test b/tests/onig.test index ed6cd3b0..763bf0b2 100644 --- a/tests/onig.test +++ b/tests/onig.test @@ -83,3 +83,8 @@ gsub("(?<d>\\d)"; ":\(.d);") gsub("(?<x>.)[^a]*"; "+\(.x)-") "Abcabc" "+A-+a-" + +# utf-8 +sub("(?<x>.)"; "\(.x)!") +"’" +"’!" |