Skip to content

Commit d286b3a

Browse files
author
Ryan Jacobs
committed
Convert strings to unicode before regex.
for issue #8
1 parent 8ee5158 commit d286b3a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/github-copywriter/regex.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def update_copyright(year, old_content)
5656
:copyrights_updated => 0
5757
}
5858

59+
# Convert the strings to unicode
60+
old_content.encode! "utf-8"
61+
5962
# All teh regex
6063
prefix = /([Cc]opyright( \([Cc]\)| ©)?|\([Cc]\)|©) /
6164
suffix = /(\.| |$)/

lib/github-copywriter/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ class Copywriter
88

99
# Current version
1010
# @return [String]
11-
VERSION = "1.2.2".freeze
11+
VERSION = "1.2.3".freeze
1212

1313
end

0 commit comments

Comments
 (0)