diff --git a/sudachipy/dictionarylib/dictionarybuilder.py b/sudachipy/dictionarylib/dictionarybuilder.py index 5f3512a..bde5871 100644 --- a/sudachipy/dictionarylib/dictionarybuilder.py +++ b/sudachipy/dictionarylib/dictionarybuilder.py @@ -334,7 +334,7 @@ def parse_splitinfo(self, info): @staticmethod def __is_id(text): - return re.match(r'U?\d+', text) + return re.match(r'U?\d+$', text) def parse_id(self, text): if text.startswith('U'):