Skip to content

Commit a852393

Browse files
authored
Merge pull request #54 from amatsuda/subject_helper_regexp_fix
Fix regexp in without_list_prefix helper to match shorter
2 parents cd5c23a + a00583a commit a852393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/messages_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module MessagesHelper
22
def without_list_prefix(subject)
3-
subject.sub(/^\[.+\]\s*/, '')
3+
subject.sub(/^\[.+?\]\s*/, '')
44
end
55

66
MARGIN = 50

0 commit comments

Comments
 (0)