Tag Element class name is incorrect when tag name contains non char/digit

Steps to reproduce

Creating a tag with non-English characters, and open the Developer Tools. The tag element class will only contains the English characters.

Expected result

The tag’s element class should contain the tag name like that on pure English charactrer tag.

tag name1: 🐞
class1: cm-formatting cm-formatting-hashtag cm-hashtag cm-hashtag-begin cm-meta cm-tag-🐞

tag name2: prefix🐞
class2: cm-formatting cm-formatting-hashtag cm-hashtag cm-hashtag-begin cm-meta cm-tag-prefix🐞

tag name3: 🐞suffix
class3: cm-formatting cm-formatting-hashtag cm-hashtag cm-hashtag-begin cm-meta cm-tag-🐞suffix

Actual result

tag name1: 🐞
class1: cm-formatting cm-formatting-hashtag cm-hashtag cm-hashtag-begin cm-meta cm-tag-

tag name2: prefix🐞
class2: cm-formatting cm-formatting-hashtag cm-hashtag cm-hashtag-begin cm-meta cm-tag-prefix

tag name3: 🐞suffix
class3: cm-formatting cm-formatting-hashtag cm-hashtag cm-hashtag-begin cm-meta cm-tag-suffix

Environment

  • Operating system:
    macOS Big Sur 11.7.1
  • Debug info:
    SYSTEM INFO:
    	Obsidian version: v1.0.3
    	Installer version: v0.15.6
    	Operating system: Darwin Kernel Version 20.6.0: Thu Sep 29 20:15:11 PDT 2022; root:xnu-7195.141.42~1/RELEASE_X86_64 20.6.0
    	Login status: logged in
    	Catalyst license: none
    	Insider build toggle: off
    	Live preview: on
    	Legacy editor: off
    	Base theme: dark
    	Community theme: none
    	Snippets enabled: 0
    	Restricted mode: on
    

Additional information

This won’t make difference for usual use, but may cause mistake on some community plugins.