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
This commit is contained in:
parent
c8261b2ccc
commit
aeec244087
@ -2,7 +2,7 @@ import json
|
||||
import re
|
||||
|
||||
# Define regular expression patterns
|
||||
pattern = r"""i18n\((["'][^"']+["'])\)"""
|
||||
pattern = r"""i18n\([\s\n\t]*(["'][^"']+["'])[\s\n\t]*\)"""
|
||||
|
||||
# Initialize the dictionary to store key-value pairs
|
||||
data = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user