Grammalecte  Check-in [dcba084a8d]

Overview
Comment:[core][js] Fix textformater
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | nodejs
Files: files | file ages | folders
SHA3-256: dcba084a8d2c58029b1b402356819f9c82b93e80015b4292d417a04f0f2ce8f4
User & Date: IllusionPerdu on 2018-10-12 12:03:08
Other Links: branch diff | manifest | tags
Context
2018-10-12
13:35
[core][js] Textformater add functions check-in: f16a92cab4 user: IllusionPerdu tags: core, nodejs
12:03
[core][js] Fix textformater check-in: dcba084a8d user: IllusionPerdu tags: core, nodejs
10:33
[build] Apply change in build check-in: 9cd97ae91f user: IllusionPerdu tags: build, nodejs
Changes

Modified gc_lang/fr/modules-js/textformatter.js from [eee97306e0] to [37082b32a5].

270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
    }

    formatText (sText, dOpt=null) {
        if (dOpt !== null) {
            dTFOptions.gl_updateOnlyExistingKeys(dOpt);
        }
        for (let [sOptName, bVal] of dTFOptions) {
            if (bVal && oReplTable.has(sOptName)) {
                for (let [zRgx, sRep] of oReplTable[sOptName]) {
                    sText = sText.replace(zRgx, sRep);
                }
            }
        }
        return sText;
    }







|







270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
    }

    formatText (sText, dOpt=null) {
        if (dOpt !== null) {
            dTFOptions.gl_updateOnlyExistingKeys(dOpt);
        }
        for (let [sOptName, bVal] of dTFOptions) {
            if (bVal && oReplTable[sOptName]) {
                for (let [zRgx, sRep] of oReplTable[sOptName]) {
                    sText = sText.replace(zRgx, sRep);
                }
            }
        }
        return sText;
    }