We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38712a7 commit e5ef61dCopy full SHA for e5ef61d
README.md
@@ -34,9 +34,13 @@ Add this line to your application's Gemfile:
34
gem 'regexp_trie'
35
```
36
37
-## Known Issues
+## Incompatibilities with the built-in `Regexp.union()`
38
39
-This is not perfectly compatible with `Regexp.union()`.
+* `RegexpTrie` handles only literals. i.e. `RegexpTrie.union("foo.*bar")` produces `/foo\.\*bar/`, not `/foo.*bar/`
40
+* `RegexpTrie` cannot handle empty strings.
41
+* The order of words does not matter:
42
+ * `Regexp.union("foo", "foobar").match("foobar") # => #<MatchData "foo">`
43
+ * `RegexpTrie.union("foo", "foobar").match("foobar") # => #<MatchData "foobar">`
44
45
## Development
46
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments