We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mildly annoying. Typing "a":[ produces the following error:
"a":[
premature end of char-class: /[/i
379 # @return [Array<Hash>] the autocomplete results 380 def autocomplete_emoji(emoji) 381 normalized_emoji = emoji.downcase.chomp(":") 382 emojis = Danbooru.config.dtext_emojis.keys 383 > 384 results = emojis.grep(/#{normalized_emoji}/i).sort_by do |match| 385 exact = match.casecmp?(normalized_emoji) ? 1 : 0 386 prefix = match.downcase.starts_with?(normalized_emoji) ? 1 : 0 387 388 # Sort exact name matches first, then prefix matches, then sort by name. 389 [-exact, -prefix, match]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Mildly annoying. Typing
"a":[
produces the following error:RegexpError at /autocomplete
premature end of char-class: /[/i
app/logical/autocomplete_service.rb, line 384
App backtrace
The text was updated successfully, but these errors were encountered: