Skip to content

Commit

Permalink
fix the detectios of hashtag at border.
Browse files Browse the repository at this point in the history
  • Loading branch information
gugod committed Apr 4, 2013
1 parent 6e0c411 commit c203391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org-expense-report
Expand Up @@ -55,7 +55,7 @@ do {
lc($currency);
$currency ||= "NTD";

if ($description =~ /\s\#(\w+)\b/) {
if ($description =~ /(?:\s|\A|\b)\#([a-zA-Z]+)(\b|$)/) {
$category = $1;
}
else {
Expand Down

0 comments on commit c203391

Please sign in to comment.