From 16ebc46e7cbddcc96b9b1a157d63c85671fe3fed Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sat, 19 Sep 2026 18:46:09 +0900 Subject: [PATCH] =?UTF-8?q?style(master=5Fdata):=20=EC=8B=9D=20=EC=9D=BD?= =?UTF-8?q?=EA=B8=B0=20=E3=80=8CK.P=E3=80=8D=20=EC=A0=90=20=EC=A4=84=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01JgUhN55Z3BCYhUJTjwTNfj --- resources/master_data/scripts/master_formula.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/master_data/scripts/master_formula.py b/resources/master_data/scripts/master_formula.py index 32ae615f..ec47a7f4 100644 --- a/resources/master_data/scripts/master_formula.py +++ b/resources/master_data/scripts/master_formula.py @@ -129,10 +129,9 @@ class _Parser: elif depth == 0 and ch == ",": break elif depth == 0 and ch == "." and not self.s[self.i + 1 : self.i + 2].isdigit(): - around = self.s[self.i - 1 : self.i] + self.s[self.i + 1 : self.i + 2] - if not ( - around.isascii() and around.isalpha() and len(around) == 2 - ): # 「K.P」「T.S」 는 열쇠 글자 + # 「K.P」「T.S」 처럼 영문자 사이 점은 열쇠 글자 + around = self.s[self.i - 1 : self.i + 2 : 2] + if not (len(around) == 2 and around.isascii() and around.isalpha()): break elif depth == 0 and re.match(r"\s[-+*/<>=!]", self.s[self.i : self.i + 2]): break