8000 Add formatting code for italic text to unformat method · Pull Request #247 · cinchrb/cinch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 13, 2019. It is now read-only.

Add formatting code for italic text to unformat method #247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/cinch/formatting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def self.format(*settings, string)
# @return [String] The filtered string
# @since 2.2.0
def self.unformat(string)
string.gsub(/[\x02\x0f\x16\x1f\x12]|\x03(\d{1,2}(,\d{1,2})?)?/, '')
string.gsub(/[\x02\x0f\x16\x1d\x1f\x12]|\x03(\d{1,2}(,\d{1,2})?)?/, '')
end
end
end
0