Skip to content

Commit

Permalink
Fix `twittering-format-string' for a string including newlines.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-format-string): fix the search of
the key string following the prefix from a string including
newlines.
  • Loading branch information
cvmat committed Jan 12, 2010
1 parent f473944 commit aa8e7b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
2010-01-13 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-format-string): fix the search of
the key string following the prefix from a string including
newlines.

2010-01-12 Yuto Hayamizu <y.hayamizu@gmail.com>

* test/run-test.sh (exit_status): add 'emacs' command to test
Expand Down
2 changes: 1 addition & 1 deletion twittering-mode.el
Expand Up @@ -1700,7 +1700,7 @@ following symbols;
(value (cdar current-table))
(following-string (substring string current-pos))
(case-fold-search nil))
(if (string-match (concat "^" key) following-string)
(if (string-match (concat "\\`" key) following-string)
(let ((next-pos (+ current-pos (match-end 0)))
(output
(if (stringp value)
Expand Down

0 comments on commit aa8e7b5

Please sign in to comment.