Overview
Comment: | [build] deprecated code |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | build | rg |
Files: | files | file ages | folders |
SHA3-256: |
e87660c39d8da7b272337694541478c3 |
User & Date: | olr on 2018-09-17 10:27:21 |
Other Links: | branch diff | manifest | tags |
Context
2018-09-17
| ||
10:46 | [core][js] gc engine: fix tags enumeration check-in: 1833934b94 user: olr tags: core, rg | |
10:27 | [build] deprecated code check-in: e87660c39d user: olr tags: build, rg | |
10:26 | [graphspell] tokenizer: new regex for ordinals (JS still sucks) check-in: a479b36582 user: olr tags: graphspell, rg | |
Changes
Modified compile_rules_js_convert.py from [9d9f89854e] to [d8aeaf3173].
︙ | ︙ | |||
42 43 44 45 46 47 48 | sCode = sCode.replace(".strip", ".gl_trim") sCode = sCode.replace(".lstrip", ".gl_trimLeft") sCode = sCode.replace(".rstrip", ".gl_trimRight") sCode = sCode.replace('.replace("."', r".replace(/\./g") sCode = sCode.replace('.replace("..."', r".replace(/\.\.\./g") sCode = re.sub(r'.replace\("([^"]+)" ?,', ".replace(/\\1/g,", sCode) # regex | < < < < | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | sCode = sCode.replace(".strip", ".gl_trim") sCode = sCode.replace(".lstrip", ".gl_trimLeft") sCode = sCode.replace(".rstrip", ".gl_trimRight") sCode = sCode.replace('.replace("."', r".replace(/\./g") sCode = sCode.replace('.replace("..."', r".replace(/\.\.\./g") sCode = re.sub(r'.replace\("([^"]+)" ?,', ".replace(/\\1/g,", sCode) # regex sCode = re.sub('m\\.group\\((\\d+)\\) +in +(a[a-zA-Z]+)', "\\2.has(m[\\1])", sCode) sCode = re.sub('(lToken\\S+) +in +(a[a-zA-Z]+)', "\\2.has(\\1)", sCode) # slices sCode = sCode.replace("[:m.start()]", ".slice(0,m.index)") sCode = sCode.replace("[m.end():]", ".slice(m.end[0])") sCode = sCode.replace("[m.start():m.end()]", ".slice(m.index, m.end[0])") sCode = sCode.replace('[lToken[nLastToken]["nEnd"]:]', '.slice(lToken[nLastToken]["nEnd"])') |
︙ | ︙ |