We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8b0518 commit 16ef5bcCopy full SHA for 16ef5bc
ui/src/mixins/composition.js
@@ -1,5 +1,6 @@
1
const isJapanese = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/
2
const isChinese = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u
3
+const isKorean = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/
4
5
export default {
6
methods: {
@@ -13,7 +14,8 @@ export default {
13
14
if (
15
typeof e.data === 'string' &&
16
isJapanese.test(e.data) === false &&
- isChinese.test(e.data) === false
17
+ isChinese.test(e.data) === false &&
18
+ isKorean.test(e.data) === false
19
) {
20
e.target.composing = false
21
}
0 commit comments