Grammalecte  Check-in [c1f1c0d9c1]

Overview
Comment:[core][js][bug] wrong parameter name
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: c1f1c0d9c1eedc12b875338c7fd49fd06ef1b7302298090c853e2fec210fbbd4
User & Date: olr on 2018-09-14 09:46:19
Other Links: branch diff | manifest | tags
Context
2018-09-14
09:48
[graphspell][js] tokenizer: fix var init check-in: 52d64fd395 user: olr tags: graphspell, rg
09:46
[core][js][bug] wrong parameter name check-in: c1f1c0d9c1 user: olr tags: core, rg
2018-09-12
21:16
[fr] ajustements check-in: cecc3acf1f user: olr tags: fr, rg
Changes

Modified gc_core/js/lang_core/gc_engine.js from [a0a87c723d] to [1fed82ec9f].

  1111   1111   
  1112   1112   
  1113   1113   //// Analyse tokens for graph rules
  1114   1114   
  1115   1115   function g_value (dToken, sValues, nLeft=null, nRight=null) {
  1116   1116       // test if <dToken['sValue']> is in sValues (each value should be separated with |)
  1117   1117       let sValue = (nLeft === null) ? "|"+dToken["sValue"]+"|" : "|"+dToken["sValue"].slice(nLeft, nRight)+"|";
  1118         -    if (sValues.includes(sValues)) {
         1118  +    if (sValues.includes(sValue)) {
  1119   1119           return true;
  1120   1120       }
  1121   1121       if (dToken["sValue"].slice(0,2).gl_isTitle()) { // we test only 2 first chars, to make valid words such as "Laissez-les", "Passe-partout".
  1122   1122           if (sValues.includes(sValue.toLowerCase())) {
  1123   1123               return true;
  1124   1124           }
  1125   1125       }