Skip to content

Commit

Permalink
Merge pull request #617 from znz/update-regexp
Browse files Browse the repository at this point in the history
Use `\A` and `\z` instead of `^` and `$`
  • Loading branch information
tdtds committed Jan 24, 2017
2 parents 65512e1 + bf1550b commit 1ad9154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/tdiary.rconf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ options2 = {
<% @options2.keys.sort.each do |k|
if @options2[k].class.to_s == "String" then
v = @options2[k].force_encoding('ASCII-8BIT').dump
elsif @options2[k].class.to_s =~ /^(Integer|Fixnum|FalseClass|TrueClass|NilClass)$/
elsif @options2[k].class.to_s =~ /\A(Integer|Fixnum|FalseClass|TrueClass|NilClass)\z/
v = @options2[k].inspect
else
next
Expand Down

0 comments on commit 1ad9154

Please sign in to comment.