diff options
author | Magnar Sveen <magnars@gmail.com> | 2016-05-09 08:56:05 +0200 |
---|---|---|
committer | Magnar Sveen <magnars@gmail.com> | 2016-05-09 08:56:05 +0200 |
commit | 46d44f37164bbe365b4a45c85dd022cc55740b53 (patch) | |
tree | 76141084b201ac793702e4e99b6fc24c7b4e8e5e /dev | |
parent | 66c25dfcf54505ca18ba473b6e361fd86805e116 (diff) | |
parent | 4af787c030379f7f9f0db64efba90036c010df88 (diff) |
Merge pull request #89 from kuanyui/master
Fix wrong behavior in s-matched-positions-all
Diffstat (limited to 'dev')
-rw-r--r-- | dev/examples.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dev/examples.el b/dev/examples.el index 0df3bc3..7c9da43 100644 --- a/dev/examples.el +++ b/dev/examples.el @@ -144,7 +144,9 @@ (s-matched-positions-all "{{\\(.+?\\)}}" "{{Hello}} World, {{Emacs}}!" 0) => '((0 . 9) (17 . 26)) (s-matched-positions-all "{{\\(.+?\\)}}" "{{Hello}} World, {{Emacs}}!" 1) => '((2 . 7) (19 . 24)) (s-matched-positions-all "l" "{{Hello}} World, {{Emacs}}!" 0) => '((4 . 5) (5 . 6) (13 . 14)) - (s-matched-positions-all "abc" "{{Hello}} World, {{Emacs}}!") => nil) + (s-matched-positions-all "abc" "{{Hello}} World, {{Emacs}}!") => nil + (s-matched-positions-all "=\\(.+?\\)=" "=Hello= World, =Emacs=!" 0) => '((0 . 7) (15 . 22)) + (s-matched-positions-all "=\\(.+?\\)=" "=Hello= World, =Emacs=!" 1) => '((1 . 6) (16 . 21))) (defexamples s-slice-at (s-slice-at "-" "abc") => '("abc") |