Project

General

Profile

Bug #21870

Updated by jneen (Jeanine Adkisson) 2 months ago

```ruby 
 $VERBOSE = true 
 # warning: character class has duplicated range: /[\p{Word}\p{S}]/ 
 regex = /[\p{Word}\p{S}]/ 
 ``` 

 As far as I can tell this is a perfectly valid ~~and non-overlapping~~ set of unicode properties, but I am still being spammed with warnings. Using `/(\p{Word}|\p{S})/` is kind of a workaround, but it is slower. 

 Edit: They do overlap somewhat, but I think the deeper issue is there is not a convenient way to express this without falling back to raw unicode ranges. Perhaps

Back