Skip to content

Commit aeec244

Browse files
authored
fix: extract locale regex (#63)
* optimize: 精简未用到的配置项并在特征提取初步引入mps * add cmd argument: --noautoopen * fix: i18n * fix * fix * add genlocale workflow * add unitest * fix * fix * fix * 优化笔记本 * reintroduce Push changes * disable genlocale on non-main branch * 将笔记本checkout改为stable * 优化代码结构 * make lint happy * make lint happy * 优化 * 优化 * 优化 * fix path on windows okey pack * fix * fix * revert * revert * revert * fix: extract locale regex
1 parent c8261b2 commit aeec244

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extract_locale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33

44
# Define regular expression patterns
5-
pattern = r"""i18n\((["'][^"']+["'])\)"""
5+
pattern = r"""i18n\([\s\n\t]*(["'][^"']+["'])[\s\n\t]*\)"""
66

77
# Initialize the dictionary to store key-value pairs
88
data = {}

0 commit comments

Comments
 (0)