From 3653954dc7a84a2ad4a4015edcdc855250ae7164 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Fri, 12 Jan 2024 11:52:01 +0000 Subject: [PATCH] Fix line endings and update string replacements --- app/models/list.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/list.rb b/app/models/list.rb index 73d3a2fc..0ba22e1f 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -83,6 +83,8 @@ def awesome_description d.gsub!(/stackoverflow/i, 'Stack Overflow') # Nodejs should be Node.js d.gsub!(/Nodejs/i, 'Node.js') + # remove mixed line endings + d.gsub!(/\r\n?/, "\n") d end