Grammalecte  Check-in [009a55b028]

Overview
Comment:[graphspell][js] coding style: spaces cleaning
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | graphspell
Files: files | file ages | folders
SHA3-256: 009a55b028269f1d3643049ba533f43a12640c66a8958b63c656b7696da2231c
User & Date: olr on 2018-04-18 10:06:50
Other Links: manifest | tags
Context
2018-04-18
12:39
[graphspell] better multicasing handling check-in: fd910bc078 user: olr tags: trunk, graphspell
10:06
[graphspell][js] coding style: spaces cleaning check-in: 009a55b028 user: olr tags: trunk, graphspell
10:05
[graphspell] suggestion mechanism: preserve capital letters (don’t use istitle/titlecase automation) check-in: 369e43f830 user: olr tags: trunk, graphspell
Changes

Modified graphspell-js/ibdawg.js from [bd1655e79d] to [bda24bb426].

70
71
72
73
74
75
76
77

78
79
80
81
82
83
84
85
86
70
71
72
73
74
75
76

77
78

79
80
81
82
83
84
85







-
+

-







            }
        }
        lRes = char_player.filterSugg(lRes);
        if (this.sWord.gl_isUpperCase()) {
            lRes = lRes.map((sSugg) => { return sSugg.toUpperCase(); });
        }
        else if (this.sWord.slice(0,1).gl_isUpperCase()) {
            lRes = lRes.map((sSugg) => { return sSugg.slice(0, 1).toUpperCase() + sSugg.slice(1); });
            lRes = lRes.map((sSugg) => { return sSugg.slice(0,1).toUpperCase() + sSugg.slice(1); });
        }
        
        return lRes.slice(0, nSuggLimit);
    }

    reset () {
        this.aSugg.clear();
        this.dSugg.clear();
    }