Skip to content

Commit 33e8f8c

Browse files
authored
Merge pull request #118 from OpenGeoMetadata/116-strip-values
Rename list of values to strip
2 parents 8c689e3 + 324267c commit 33e8f8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/geo_combine/ogp.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def slug
207207
sluggify(filter_name(name))
208208
end
209209

210-
SLUG_BLACKLIST = %w[
210+
SLUG_STRIP_VALUES = %w[
211211
SDE_DATA.
212212
SDE.
213213
SDE2.
@@ -218,8 +218,8 @@ def slug
218218

219219
def filter_name(name)
220220
# strip out schema and usernames
221-
SLUG_BLACKLIST.each do |blacklisted|
222-
name.sub!(blacklisted, '')
221+
SLUG_STRIP_VALUES.each do |strip_val|
222+
name.sub!(strip_val, '')
223223
end
224224
unless name.size > 1
225225
# use first word of title is empty name

0 commit comments

Comments
 (0)