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 @@ -260,7 +260,7 @@ class AlgorithmsResultBuilderTests: XCTestCase {
260
260
func testStartsAndContains( ) throws {
261
261
let fam = " 👨👩👧👦👨👨👧👧 we Ⓡ family "
262
262
let startsWithGrapheme = fam. starts {
263
- OneOrMore ( . anyGrapheme )
263
+ OneOrMore ( . anyGraphemeCluster )
264
264
OneOrMore ( . whitespace)
265
265
}
266
266
XCTAssertEqual ( startsWithGrapheme, true )
@@ -272,7 +272,7 @@ class AlgorithmsResultBuilderTests: XCTestCase {
272
272
273
273
let content = {
274
274
Regex {
275
- OneOrMore ( . anyGrapheme )
275
+ OneOrMore ( . anyGraphemeCluster )
276
276
OneOrMore ( . whitespace)
277
277
}
278
278
}
@@ -321,7 +321,7 @@ class AlgorithmsResultBuilderTests: XCTestCase {
321
321
322
322
var mutable = " 👨👩👧👦 we Ⓡ family "
323
323
mutable. trimPrefix {
324
- . anyGrapheme
324
+ . anyGraphemeCluster
325
325
ZeroOrMore ( . whitespace)
326
326
}
327
327
XCTAssertEqual ( mutable, " we Ⓡ family " )
You can’t perform that action at this time.
0 commit comments