Skip to content

Commit

Permalink
fix: adjust Unicode support for Ruby, fix typo in DotNetSupportedBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloso committed Dec 16, 2024
1 parent ecbf6ad commit db8f521
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pomsky-lib/src/exprs/char_class/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,7 @@ fn named_class_to_regex_unicode(
if flavor == RegexFlavor::DotNet {
return Err(CompileErrorKind::Unsupported(Feature::UnicodeScript, flavor).at(span));
}
if let (RegexFlavor::Ruby, Script::Kawi | Script::Nag_Mundari)
| (RegexFlavor::Rust, Script::Unknown) = (flavor, s)
{
if let (RegexFlavor::Rust, Script::Unknown) = (flavor, s) {
return Err(CompileErrorKind::unsupported_specific_prop_in(flavor).at(span));
}

Expand Down
2 changes: 1 addition & 1 deletion pomsky-syntax/DotNetSupportedBlocks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ HighSurrogates
Hiragana
IPAExtensions
IdeographicDescriptionCharacters
IsPrivateUseArea
Kanbun
KangxiRadicals
Kannada
Expand Down Expand Up @@ -83,6 +82,7 @@ OpticalCharacterRecognition
Oriya
PhoneticExtensions
PrivateUse
PrivateUseArea
Runic
Sinhala
SmallFormVariants
Expand Down

0 comments on commit db8f521

Please # to comment.