mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
25a4d98cc6
commit
886401990c
|
@ -14,7 +14,7 @@ import urllib.parse
|
|||
from utils import removeIdEnding
|
||||
from utils import is_dm
|
||||
from utils import is_reply
|
||||
from utils import camelCaseSplit
|
||||
from utils import camel_case_split
|
||||
from utils import getDomainFromActor
|
||||
from utils import getNicknameFromActor
|
||||
from utils import getGenderFromBio
|
||||
|
@ -475,7 +475,7 @@ def _postToSpeakerJson(base_dir: str, http_prefix: str,
|
|||
return
|
||||
speakerName = _removeEmojiFromText(speakerName)
|
||||
speakerName = speakerName.replace('_', ' ')
|
||||
speakerName = camelCaseSplit(speakerName)
|
||||
speakerName = camel_case_split(speakerName)
|
||||
gender = getGenderFromBio(base_dir, post_json_object['actor'],
|
||||
person_cache, translate)
|
||||
if announcingActor:
|
||||
|
|
6
tests.py
6
tests.py
|
@ -67,7 +67,7 @@ from utils import date_string_to_seconds
|
|||
from utils import date_seconds_to_string
|
||||
from utils import valid_password
|
||||
from utils import user_agent_domain
|
||||
from utils import camelCaseSplit
|
||||
from utils import camel_case_split
|
||||
from utils import decoded_host
|
||||
from utils import get_full_domain
|
||||
from utils import validNickname
|
||||
|
@ -5010,10 +5010,10 @@ def _testSpeakerReplaceLinks():
|
|||
def _testCamelCaseSplit():
|
||||
print('testCamelCaseSplit')
|
||||
testStr = 'ThisIsCamelCase'
|
||||
assert camelCaseSplit(testStr) == 'This Is Camel Case'
|
||||
assert camel_case_split(testStr) == 'This Is Camel Case'
|
||||
|
||||
testStr = 'Notcamelcase test'
|
||||
assert camelCaseSplit(testStr) == 'Notcamelcase test'
|
||||
assert camel_case_split(testStr) == 'Notcamelcase test'
|
||||
|
||||
|
||||
def _testEmojiImages():
|
||||
|
|
Loading…
Reference in New Issue