Grammalecte  Check-in [3607227671]

Overview
Comment:[core][fr][js] fix getGenderNumber()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr | core
Files: files | file ages | folders
SHA3-256: 3607227671feb71e9705f418ecd1742cc84e879a798ba858259eb70bbe25859e
User & Date: olr on 2021-01-23 14:02:46
Other Links: manifest | tags
Context
2021-01-23
15:10
[core][fr][py] suggestions: don’t use set anymone, use list, to keep order insertion check-in: e98e6badf3 user: olr tags: core, fr, trunk
14:02
[core][fr][js] fix getGenderNumber() check-in: 3607227671 user: olr tags: core, fr, trunk
13:03
[core][build][js] replace nbsp by nnbsp within the GC, instead of replacing them at build check-in: bd2ff57bf8 user: olr tags: build, core, fr, trunk
Changes

Modified gc_lang/fr/modules-js/cregex.js from [f6f0552c5d] to [af981c2a51].

   155    155               if (m) {
   156    156                   let sGenderx = m[0].slice(0,2);
   157    157                   let sNumberx = m[0].slice(2,4);
   158    158                   if (!sGender) {
   159    159                       sGender = sGenderx;
   160    160                   }
   161    161                   else if (sGender != sGenderx) {
   162         -                    sGenderx = ":e";
          162  +                    sGender = ":e";
   163    163                   }
   164    164                   if (!sNumber) {
   165    165                       sNumber = sNumberx;
   166    166                   }
   167    167                   else if (sNumber != sNumberx) {
   168         -                    sNumberx = ":i";
          168  +                    sNumber = ":i";
   169    169                   }
   170    170               }
   171    171           }
   172    172           return [sGender, sNumber];
   173    173       },
   174    174   
   175    175