Skip to content

Commit 1f56415

Browse files
committed
fix deprecated inline flag
1 parent fcadc2f commit 1f56415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/corpus/tnc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def word_freq(word: str, domain: str = "all") -> int:
4848

4949
r = requests.post(url, data=data)
5050

51-
pat = re.compile(r'TOTAL</font>(?s).*?#ffffff">(.*?)</font>')
51+
pat = re.compile(r'TOTAL</font>.*?#ffffff">(.*?)</font>', flags=re.DOTALL)
5252
match = pat.search(r.text)
5353

5454
n = 0

0 commit comments

Comments
 (0)