[Bug]: Cyrillic function names are rejected by the formula parser

オープン 初心者向け
#1,803 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
compilers

調査の方向性

src/parser/parser-consts.ts から始めてください。そこでは UNICODE_LETTER_PATTERN がキリル文字を除外しており、lexer がこのパターンをどこで使っているかを確認してください。ruRU を設定して =СУММ(1;2;3) を解析すると再現できます。現在は #ERROR! が返されます。ruRU の下で СУММ や ЕСЛИ のようなキリル文字の関数名が解析でき、既存のパーサーテストがすべて通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description

HyperFormula 3.4.0 fails to parse Russian function names even with the ruRU language registered and configured.

For example, =СУММ(1;2;3) produces #ERROR!:

Parsing error. unexpected character: ->С<- at offset: 1

The cause appears to be UNICODE_LETTER_PATTERN in src/parser/parser-consts.ts, which excludes Cyrillic characters:

export const UNICODE_LETTER_PATTERN = 'A-Za-z\u00C0-\u02AF'

Expected: Russian function names such as СУММ and ЕСЛИ should be recognized when using language: "ruRU".

Suggested fix: Extend the lexer character range to include Cyrillic (\u0400-\u052F).

Video or screenshots

No response

Demo

livecodes.io

HyperFormula version

3.4.0

Your framework

No response

Your environment

Firefox 156.0.1 on Debian 13

主要言語
TypeScript
スター
2.8k
フォーク
175
平均マージ
1日 15時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

handsontable/hyperformula のほかの issue

handsontable/hyperformula の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。