-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Include Values of Script Extensions for Unicode Property Value E…
…xpressions in Regular Expressions (#58615)
- Loading branch information
1 parent
4c233f1
commit 3aaa614
Showing
6 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
//// [tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts] //// | ||
|
||
//// [regularExpressionUnicodePropertyValueExpressionSuggestions.ts] | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}\p{Script_Declensions=Inherited}\p{scx=inherit}/u; | ||
|
||
|
||
//// [regularExpressionUnicodePropertyValueExpressionSuggestions.js] | ||
var regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; | ||
var regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}\p{Script_Declensions=Inherited}\p{scx=inherit}/u; |
2 changes: 1 addition & 1 deletion
2
tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//// [tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts] //// | ||
|
||
=== regularExpressionUnicodePropertyValueExpressionSuggestions.ts === | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}\p{Script_Declensions=Inherited}\p{scx=inherit}/u; | ||
>regex : Symbol(regex, Decl(regularExpressionUnicodePropertyValueExpressionSuggestions.ts, 0, 5)) | ||
|
6 changes: 3 additions & 3 deletions
6
tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
//// [tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts] //// | ||
|
||
=== regularExpressionUnicodePropertyValueExpressionSuggestions.ts === | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}\p{Script_Declensions=Inherited}\p{scx=inherit}/u; | ||
>regex : RegExp | ||
> : ^^^^^^ | ||
>/\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u : RegExp | ||
> : ^^^^^^ | ||
>/\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}\p{Script_Declensions=Inherited}\p{scx=inherit}/u : RegExp | ||
> : ^^^^^^ | ||
|
2 changes: 1 addition & 1 deletion
2
tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}\p{Script_Declensions=Inherited}\p{scx=inherit}/u; |