Grammalecte  Check-in [b75424b663]

Overview
Comment:[core][fr] fix syntax bug
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr | core
Files: files | file ages | folders
SHA3-256: b75424b663b856d5d49ecaec3e5e5c0172fc29af85421f5a4349c43cd2b12470
User & Date: olr on 2020-05-09 07:51:53
Other Links: manifest | tags
Context
2020-05-09
11:03
[fr] ajustements et faux positifs check-in: 1414c08368 user: olr tags: trunk, fr
07:51
[core][fr] fix syntax bug check-in: b75424b663 user: olr tags: trunk, fr, core
07:33
[fr] ajustements pour conjugaisons [core] remove legacy code check-in: d858319927 user: olr tags: trunk, fr, core
Changes

Modified gc_lang/fr/modules-js/gce_analyseur.js from [34026241d7] to [ecd175c995].

57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
    if (lMorph1.length === 0) {
        return true;
    }
    let lMorph2 = oToken2.hasOwnProperty("lMorph") ? oToken2["lMorph"] : _oSpellChecker.getMorph(oToken2["sValue"]);
    if (lMorph2.length === 0) {
        return true;
    }
    if (bNotOnlyNames  &&  not (cregex.mbAdj(lMorph2) || cregex.mbAdjNb(lMorph1))) {
        return false;
    }
    return cregex.checkAgreement(lMorph1, lMorph2);
}

function checkAgreement (sWord1, sWord2) {
    let lMorph2 = _oSpellChecker.getMorph(sWord2);







|







57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
    if (lMorph1.length === 0) {
        return true;
    }
    let lMorph2 = oToken2.hasOwnProperty("lMorph") ? oToken2["lMorph"] : _oSpellChecker.getMorph(oToken2["sValue"]);
    if (lMorph2.length === 0) {
        return true;
    }
    if (bNotOnlyNames && !(cregex.mbAdj(lMorph2) || cregex.mbAdjNb(lMorph1))) {
        return false;
    }
    return cregex.checkAgreement(lMorph1, lMorph2);
}

function checkAgreement (sWord1, sWord2) {
    let lMorph2 = _oSpellChecker.getMorph(sWord2);