Grammalecte  Check-in [4b78e35e83]

Overview
Comment:[fr][js][bug] conj generator: forgotten parameter
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | multid
Files: files | file ages | folders
SHA3-256: 4b78e35e83308b16f8c4c9b41fb8c99f25f4669065aa9480d06f267987facc92
User & Date: olr on 2018-03-11 19:14:40
Original Comment: [fr][bug] conj generator: forgotten parameter
Other Links: branch diff | manifest | tags
Context
2018-03-11
19:15
[fr][py][bug] conj generator: forgotten parameter check-in: ace3220f34 user: olr tags: fr, multid
19:14
[fr][js][bug] conj generator: forgotten parameter check-in: 4b78e35e83 user: olr tags: fr, multid
12:43
[fx] lexicon editor: update check-in: 5cf9b11203 user: olr tags: fx, multid
Changes

Modified gc_lang/fr/modules-js/conj_generator.js from [5263579a95] to [5cac5f9e5e].

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23


var conj_generator = {

    conjugate: function (sVerb, sVerbTag="i_____a", bVarPpas=true) {
        let lConj = [];
        let cGroup = this.getVerbGroupChar(sVerb);
        for (let [nCut, sAdd, sFlexTags, sPattern] of this.getConjRules(sVerb)) {
            if (!sPattern || RegExp(sPattern).test(sVerb)) {
                lConj.push( [sVerb.slice(0, -nCut) + sAdd, ":V" + cGroup + "_" + sVerbTag + sFlexTags] );
            }
        }
        return lConj;
    },








|







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23


var conj_generator = {

    conjugate: function (sVerb, sVerbTag="i_____a", bVarPpas=true) {
        let lConj = [];
        let cGroup = this.getVerbGroupChar(sVerb);
        for (let [nCut, sAdd, sFlexTags, sPattern] of this.getConjRules(sVerb, bVarPpas)) {
            if (!sPattern || RegExp(sPattern).test(sVerb)) {
                lConj.push( [sVerb.slice(0, -nCut) + sAdd, ":V" + cGroup + "_" + sVerbTag + sFlexTags] );
            }
        }
        return lConj;
    },