From 4da11fb55220afedc867d7838ebc3edbc61eedf9 Mon Sep 17 00:00:00 2001 From: Eana Hufwe Date: Sat, 4 Nov 2023 21:35:04 -0700 Subject: [PATCH] fix(jukebox): fix regex --- .../dashboard/musicFilesDetails/lyrics/InlineTaggingDots.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jukebox/src/components/dashboard/musicFilesDetails/lyrics/InlineTaggingDots.tsx b/packages/jukebox/src/components/dashboard/musicFilesDetails/lyrics/InlineTaggingDots.tsx index 91609b60..d08ad78c 100644 --- a/packages/jukebox/src/components/dashboard/musicFilesDetails/lyrics/InlineTaggingDots.tsx +++ b/packages/jukebox/src/components/dashboard/musicFilesDetails/lyrics/InlineTaggingDots.tsx @@ -1,7 +1,7 @@ import { FURIGANA, LyricsLine, RangeAttributeLabel } from "lyrics-kit/core"; const pattern = - "(([あいうえおアイウエオゕゖヵヶてでテデんン]|[きぎしじちぢにひびぴみりゐキギシジチヂニヒビピミリヰヸ]([ゃャ]|[ゅょュョ][うウ]?)*|[くぐすずつづぬふぶぷむゆるゔクグスズツヅヌフブプムユルヴ][うウ]*|[けげせぜねへべぺめれゑケゲセゼネヘベペメレヱヹ][いイ]*|[こごそぞとどのほぼぽもよろをコゴソゾトドノホボポモヨロヲヺ][うウ]*)[ぁぃぅぇぉっァィゥェォッーんン]*|\\p{sc=Han}|[\\p{sc=Latin}\\p{sc=Cyrillic}\\p{sc=Greek}\\p{Nd}]+)"; + "(([あいうえおアイウエオゕゖヵヶてでテデんン]|[かがさざただなはばぱまやらわカガサザタダナハバパマヤラワヷ]|[きぎしじちぢにひびぴみりゐキギシジチヂニヒビピミリヰヸ]([ゃャ]|[ゅょュョ][うウ]?)*|[くぐすずつづぬふぶぷむゆるゔクグスズツヅヌフブプムユルヴ][うウ]*|[けげせぜねへべぺめれゑケゲセゼネヘベペメレヱヹ][いイ]*|[こごそぞとどのほぼぽもよろをコゴソゾトドノホボポモヨロヲヺ][うウ]*)[ぁぃぅぇぉっァィゥェォッーんン]*|\\p{sc=Han}|[\\p{sc=Latin}\\p{sc=Cyrillic}\\p{sc=Greek}\\p{Nd}]+)"; const beginPattern = new RegExp(pattern, "u"); const countPattern = new RegExp(pattern, "gu");