Lines Matching defs:text
31 const text = form.wikitext.value;
38 !text.match(re)
55 form.wikitext.value = await this.decryptSyntax(text, passphrase);
63 * Encrypt all clear text syntax in the given text
65 * @param {string} text
69 async decryptSyntax(text, passphrase) {
72 const matches = [...text.matchAll(re)];
78 text = text.replace(matches[i][0], `<encrypt>${clear}</encrypt>`);
84 return text;
97 const text = e.target.form.wikitext.value;
99 // check if syntax contains clear text passwords
104 !text.match(re)
124 e.target.form.wikitext.value = await this.encryptSyntax(text, passphrase);
131 * Encrypt all clear text syntax in the given text
133 * @param {string} text
137 async encryptSyntax(text, passphrase) {
140 const matches = [...text.matchAll(re)];
145 text = text.replace(matches[i][0], `<decrypt>${cipher}</decrypt>`);
148 return text;