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: trunk, fr, core
14:02
[core][fr][js] fix getGenderNumber() check-in: 3607227671 user: olr tags: trunk, fr, core
13:03
[core][build][js] replace nbsp by nnbsp within the GC, instead of replacing them at build check-in: bd2ff57bf8 user: olr tags: trunk, fr, core, build
Changes

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

155
156
157
158
159
160
161
162

163
164
165
166
167
168

169
170
171
172
173
174
175
155
156
157
158
159
160
161

162
163
164
165
166
167

168
169
170
171
172
173
174
175







-
+





-
+







            if (m) {
                let sGenderx = m[0].slice(0,2);
                let sNumberx = m[0].slice(2,4);
                if (!sGender) {
                    sGender = sGenderx;
                }
                else if (sGender != sGenderx) {
                    sGenderx = ":e";
                    sGender = ":e";
                }
                if (!sNumber) {
                    sNumber = sNumberx;
                }
                else if (sNumber != sNumberx) {
                    sNumberx = ":i";
                    sNumber = ":i";
                }
            }
        }
        return [sGender, sNumber];
    },