Skip to content
Snippets Groups Projects
Commit f9680af9 authored by Anusha Ranganathan's avatar Anusha Ranganathan
Browse files

need to doncase before checking for prefix and suffix

parent 9b1d1fe1
No related tags found
1 merge request!247Sanitize all complex titles
Pipeline #11992 failed
......@@ -21,13 +21,13 @@ module ComplexHelper
title.sub!(/\A[^a-zA-Z0-9]*/, '')
title.sub!(/[^a-zA-Z0-9]*\z/, '')
title.downcase
# Check for xn-- prefix and sthree- prefix
title.gsub!(/\Asthree-/i, '')
# Check for -s3alias suffix and --ol-s3 suffix
title.sub!(/-s3alias\z/i, '')
title.downcase
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment