File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ extension RegexComponent where Self == CharacterClass {
48
48
. init( DSLTree . CustomCharacterClass ( members: [ . atom( . any) ] ) )
49
49
}
50
50
51
- public static var anyGrapheme : CharacterClass {
51
+ public static var anyGraphemeCluster : CharacterClass {
52
52
. init( unconverted: . anyGrapheme)
53
53
}
54
54
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ class AlgorithmsResultBuilderTests: XCTestCase {
259
259
func testStartsAndContains( ) throws {
260
260
let fam = " 👨👩👧👦👨👨👧👧 we Ⓡ family "
261
261
let startsWithGrapheme = fam. starts {
262
- OneOrMore ( . anyGrapheme )
262
+ OneOrMore ( . anyGraphemeCluster )
263
263
OneOrMore ( . whitespace)
264
264
}
265
265
XCTAssertEqual ( startsWithGrapheme, true )
@@ -271,7 +271,7 @@ class AlgorithmsResultBuilderTests: XCTestCase {
271
271
272
272
let content = {
273
273
Regex {
274
- OneOrMore ( . anyGrapheme )
274
+ OneOrMore ( . anyGraphemeCluster )
275
275
OneOrMore ( . whitespace)
276
276
}
277
277
}
@@ -320,7 +320,7 @@ class AlgorithmsResultBuilderTests: XCTestCase {
320
320
321
321
var mutable = " 👨👩👧👦 we Ⓡ family "
322
322
mutable. trimPrefix {
323
- . anyGrapheme
323
+ . anyGraphemeCluster
324
324
ZeroOrMore ( . whitespace)
325
325
}
326
326
XCTAssertEqual ( mutable, " we Ⓡ family " )
You can’t perform that action at this time.
0 commit comments