aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/sandbox/japanese-util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-16 20:04:56 -0500
committerGitHub <noreply@github.com>2023-12-17 01:04:56 +0000
commitb249627434d3a94420ac4d98c3ce720767e57b43 (patch)
treeec46e2c020c5a63a5c2babf56376f53e288ed7f2 /ext/js/language/sandbox/japanese-util.js
parentdecbc60f7734e739c0e5c41da294f65f9eec92fe (diff)
Update eslint spacing rules (#366)
* Add space-infix-ops rule * Add no-multi-spaces --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
Diffstat (limited to 'ext/js/language/sandbox/japanese-util.js')
-rw-r--r--ext/js/language/sandbox/japanese-util.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/language/sandbox/japanese-util.js b/ext/js/language/sandbox/japanese-util.js
index 6f4fc8e0..9d36497a 100644
--- a/ext/js/language/sandbox/japanese-util.js
+++ b/ext/js/language/sandbox/japanese-util.js
@@ -88,7 +88,7 @@ const JAPANESE_RANGES = [
[0xff1a, 0xff1f], // Fullwidth punctuation 2
[0xff3b, 0xff3f], // Fullwidth punctuation 3
[0xff5b, 0xff60], // Fullwidth punctuation 4
- [0xffe0, 0xffee] // Currency markers
+ [0xffe0, 0xffee] // Currency markers
];
const SMALL_KANA_SET = new Set(Array.from('ぁぃぅぇぉゃゅょゎァィゥェォャュョヮ'));
@@ -235,7 +235,7 @@ export class JapaneseUtil {
/**
* @param {?import('wanakana')|import('../../../lib/wanakana.js')} wanakana
*/
- constructor(wanakana=null) {
+ constructor(wanakana = null) {
/** @type {?import('wanakana')} */
this._wanakana = /** @type {import('wanakana')} */ (wanakana);
}
@@ -386,7 +386,7 @@ export class JapaneseUtil {
* @param {boolean} [keepProlongedSoundMarks]
* @returns {string}
*/
- convertKatakanaToHiragana(text, keepProlongedSoundMarks=false) {
+ convertKatakanaToHiragana(text, keepProlongedSoundMarks = false) {
let result = '';
const offset = (HIRAGANA_CONVERSION_RANGE[0] - KATAKANA_CONVERSION_RANGE[0]);
for (let char of text) {
@@ -469,7 +469,7 @@ export class JapaneseUtil {
* @param {?import('../../general/text-source-map.js').TextSourceMap} [sourceMap]
* @returns {string}
*/
- convertHalfWidthKanaToFullWidth(text, sourceMap=null) {
+ convertHalfWidthKanaToFullWidth(text, sourceMap = null) {
let result = '';
// This function is safe to use charCodeAt instead of codePointAt, since all
@@ -516,7 +516,7 @@ export class JapaneseUtil {
* @param {?import('../../general/text-source-map.js').TextSourceMap} sourceMap
* @returns {string}
*/
- convertAlphabeticToKana(text, sourceMap=null) {
+ convertAlphabeticToKana(text, sourceMap = null) {
let part = '';
let result = '';
@@ -679,7 +679,7 @@ export class JapaneseUtil {
* @param {?import('../../general/text-source-map.js').TextSourceMap} [sourceMap]
* @returns {string}
*/
- collapseEmphaticSequences(text, fullCollapse, sourceMap=null) {
+ collapseEmphaticSequences(text, fullCollapse, sourceMap = null) {
let result = '';
let collapseCodePoint = -1;
const hasSourceMap = (sourceMap !== null);