Skip to content

Commit 588bba2

Browse files
authored
fix(itn): ip (#138)
1 parent 6d42228 commit 588bba2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

itn/chinese/rules/cardinal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def build_tagger(self):
112112
self.number_exclude_0_to_9 = (sign.ques + number_exclude_0_to_9).optimize() # noqa
113113

114114
# cardinal string like 127.0.0.1, used in ID, IP, etc.
115-
cardinal = digit.plus + (dot + digits.plus).plus
115+
cardinal = digits.plus + (dot + digits.plus).plus
116116
# float number like 1.11
117117
cardinal |= (number + dot + digits.plus)
118118
# cardinal string like 110 or 12306 or 13125617878, used in phone

0 commit comments

Comments
 (0)