Skip to content

Commit 5b4e0f3

Browse files
committed
v7.6.0
1 parent bdbbaaa commit 5b4e0f3

File tree

7 files changed

+16
-12
lines changed

7 files changed

+16
-12
lines changed

index.html

Lines changed: 4 additions & 3 deletions
Large diffs are not rendered by default.

mobile.html

Lines changed: 3 additions & 2 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"tslib": "^2.8.1",
6161
"typescript": "^5.9.3",
6262
"typescript-eslint": "^8.45.0",
63-
"typograf": "^7.5.0"
63+
"typograf": "^7.6.0"
6464
},
6565
"scripts": {
6666
"copy:dict": "cp ./node_modules/eyo-kernel/dictionary/safe.txt ./dist/eyo.txt",

src/components/prefs/prefs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ export class Prefs {
201201
});
202202

203203
html = escapeHTML(html)
204-
.replace(/(&amp;#?[\da-z_-]+;)/gi, '<span style="color: green;">$1</span>');
204+
.replace(/(&amp;#?[\da-z_-]+;|\\u[\da-f]{4})/gi, '<span style="color: green;">$1</span>');
205205

206206
this.domHtmlEntitiesExample.innerHTML = html;
207207

208-
if (this.mode === 'digit' || this.mode === 'name') {
208+
if (this.mode === 'digit' || this.mode === 'name' || this.mode === 'js') {
209209
showElement(this.domInvisibleSymbolsContainer);
210210
} else {
211211
hideElement(this.domInvisibleSymbolsContainer);

src/html/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ <h1 class="header__title"><span data-text-id="typograf">Типограф</span><
4949
<option value="default">UTF-8</option>
5050
<option value="name" data-text-id="names">Имена</option>
5151
<option value="digit" data-text-id="digits">Цифры</option>
52+
<option value="js">JS</option>
5253
</select><span class="prefs__invisible-symbols-container"><input type="checkbox" class="prefs__only-invisible" id="invisible-symbols" /> <label for="invisible-symbols" data-text-id="invisible-symbols">Для невидимых символов</label></span><br/>
5354
<div class="prefs__html-entities-example-container"><span data-text-id="example"></span>: <span class="prefs__html-entities-example"></span></div>
5455
</div>

src/html/mobile.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ <h1 class="header__title"><span data-text-id="typograf">Типограф</span><
3939
<option value="default">UTF-8</option>
4040
<option value="name" data-text-id="names">Имена</option>
4141
<option value="digit" data-text-id="digits">Цифры</option>
42+
<option value="js">JS</option>
4243
</select><span class="prefs__invisible-symbols-container"><input type="checkbox" class="prefs__only-invisible" id="invisible-symbols" /> <label for="invisible-symbols" data-text-id="invisible-symbols">Для невидимых символов</label></span><br/>
4344
<div class="prefs__html-entities-example-container"><span data-text-id="example"></span>: <span class="prefs__html-entities-example"></span></div>
4445
</div>

0 commit comments

Comments
 (0)