diff options
author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2024-09-03 12:59:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 07:59:37 -0300 |
commit | de2bcbdabf19cb05682b2087b42726ee2325fe8e (patch) | |
tree | 79b0cbc222519b7c283938daecbbce0c4b2a29a6 /apps/Fmt | |
parent | f6fd978a7a871ff91ad67e60284c5195e227dcd5 (diff) |
refactor(Core/Misc): Acore::StringFormat to fmt format (#19838)
refactor(Core/Utilities): Acore::StringFormat to fmt format
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/10356
Diffstat (limited to 'apps/Fmt')
-rw-r--r-- | apps/Fmt/FormatReplace.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/Fmt/FormatReplace.py b/apps/Fmt/FormatReplace.py index a25a02ed51..a9d553f141 100644 --- a/apps/Fmt/FormatReplace.py +++ b/apps/Fmt/FormatReplace.py @@ -62,12 +62,12 @@ def isPAppend(line): else : return False -# def isStringFormat(line): -# substring = 'StringFormat' -# if substring in line: -# return True -# else : -# return False +def isStringFormat(line): + substring = 'StringFormat' + if substring in line: + return True + else : + return False def haveDelimeter(line): if ';' in line: @@ -96,8 +96,8 @@ def checkSoloLine(line): # return handleCleanup(line), False # elif isPSendSysMessage(line): # return handleCleanup(line), False - # elif isStringFormat(line): - # return handleCleanup(line), False + elif isStringFormat(line): + return handleCleanup(line), False else: return line, False @@ -122,8 +122,8 @@ def startMultiLine(line): elif isPAppend(line): line = line.replace("PAppend", "Append"); return handleCleanup(line), True - # elif isStringFormat(line): - # return handleCleanup(line), True + elif isStringFormat(line): + return handleCleanup(line), True else : return line, False |