Overview
Comment: | [core][js] remove char ~ in RegExp |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | core |
Files: | files | file ages | folders |
SHA3-256: |
66f159cb3c687ed4b299b9f831b375d6 |
User & Date: | olr on 2017-06-20 11:30:18 |
Other Links: | manifest | tags |
Context
2017-06-20
| ||
19:07 | [fr] phonet_simil: beignet/baigner check-in: 7e24ad3d1d user: olr tags: trunk, fr | |
11:30 | [core][js] remove char ~ in RegExp check-in: 66f159cb3c user: olr tags: trunk, core | |
11:18 | [fr] merge depuis fr_killtricks: caractère ~ supprimé check-in: 07cd4cd716 user: olr tags: trunk, fr | |
Changes
Modified gc_core/js/jsex_regex.js from [de380ed036] to [bb46156b4b].
︙ | ︙ | |||
37 38 39 40 41 42 43 | m.end.push(m.index + codePos + m[i].length); } else if (codePos === "$") { // at the end of the pattern m.start.push(this.lastIndex - m[i].length); m.end.push(this.lastIndex); } else if (codePos === "w") { // word in the middle of the pattern | | | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | m.end.push(m.index + codePos + m[i].length); } else if (codePos === "$") { // at the end of the pattern m.start.push(this.lastIndex - m[i].length); m.end.push(this.lastIndex); } else if (codePos === "w") { // word in the middle of the pattern iPos = m[0].search("[ ’,()«»“”]"+m[i]+"[ ,’()«»“”]") + 1 + m.index m.start.push(iPos); m.end.push(iPos + m[i].length) } else if (codePos === "*") { // anywhere iPos = m[0].indexOf(m[i]) + m.index; m.start.push(iPos); m.end.push(iPos + m[i].length) |
︙ | ︙ |