test_meta_entity: Test more punctuation as invalid values.
This commit is contained in:
parent
499f18ff62
commit
3e20b863e0
1 changed files with 8 additions and 7 deletions
|
@ -51,16 +51,17 @@ INVALID_VALUES = {
|
||||||
# Names that can be reduced to ASCII should be
|
# Names that can be reduced to ASCII should be
|
||||||
# Producers should change this to Uberentity or Ueberentity
|
# Producers should change this to Uberentity or Ueberentity
|
||||||
# I am not wild about this rule and would like to relax it—it's mostly
|
# I am not wild about this rule and would like to relax it—it's mostly
|
||||||
# based on an expectation that entities are typed in by a human. That's true
|
# based on an expectation that entities are typed in by an American. That's
|
||||||
# less and less and it seems like we should reduce the amount of mangling
|
# true less and less and it seems like we should reduce the amount of
|
||||||
# producers are expected to do. But it's the rule for today.
|
# mangling producers are expected to do. But it's the rule for today.
|
||||||
'Überentity',
|
'Überentity',
|
||||||
# Whitespace is never allowed
|
# Whitespace is never allowed
|
||||||
'Alex Smith',
|
|
||||||
'田中 流星',
|
|
||||||
'スミス ダコタ',
|
|
||||||
'Яшин Данила',
|
|
||||||
' ',
|
' ',
|
||||||
|
'Alex Smith',
|
||||||
|
'田中\u00A0流星', # Non-breaking space
|
||||||
|
# The only punctuation allowed is - and .
|
||||||
|
'スミス_ダコタ',
|
||||||
|
'Яшин—Данила', # em dash
|
||||||
# An empty string is not valid
|
# An empty string is not valid
|
||||||
'',
|
'',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue