mirror of
https://github.com/Icinga/icinga-docs-tools.git
synced 2025-07-21 12:54:23 +02:00
Add 'from' stopword
This commit is contained in:
parent
cedb620486
commit
22bda17fa2
@ -55,7 +55,7 @@ def titleize(string)
|
||||
title = title.gsub(/(-|_)/, ' ')
|
||||
|
||||
# Uppercase only first letter of each word, ignore stopwords
|
||||
stopwords = ['and', 'or', 'to', 'by', 'on', 'with', 'is', 'at', 'of']
|
||||
stopwords = ['and', 'or', 'to', 'by', 'on', 'with', 'is', 'at', 'of', 'from']
|
||||
title = title.split.map { |word|
|
||||
if stopwords.include?(word)
|
||||
word
|
||||
|
Loading…
x
Reference in New Issue
Block a user