| @@ -1,7 +1,8 @@ |
| 1 | module Docs | 1 | module Docs |
| 2 | class Javascript | 2 | class Javascript |
| 3 | class EntriesFilter < Docs::EntriesFilter | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | TYPES = %w(Array Boolean Date Function Intl JSON Math Number Object RegExp String) | 4 | TYPES = %w(Array Boolean Date Function Intl JSON Map Math Number Object |
| | 5 | RegExp Set String Symbol WeakMap WeakSet) |
| 5 | INTL_OBJECTS = %w(Collator DateTimeFormat NumberFormat) | 6 | INTL_OBJECTS = %w(Collator DateTimeFormat NumberFormat) |
| 6 | | 7 | |
| 7 | def get_name | 8 | def get_name |
| @@ -19,6 +20,7 @@ module Docs · 11 unmodified lines |
| 19 | name | 20 | name |
| 20 | else | 21 | else |
| 21 | name = super | 22 | name = super |
| | 23 | name.remove! 'Functions.' |
| 22 | name.remove! 'Functions and function scope.' | 24 | name.remove! 'Functions and function scope.' |
| 23 | name.remove! 'Operators.' | 25 | name.remove! 'Operators.' |
| 24 | name.remove! 'Statements.' | 26 | name.remove! 'Statements.' |
| @@ -31,7 +33,7 @@ module Docs · 6 unmodified lines |
| 31 | 'Statements' | 33 | 'Statements' |
| 32 | elsif slug.start_with? 'Operators' | 34 | elsif slug.start_with? 'Operators' |
| 33 | 'Operators' | 35 | 'Operators' |
| 34 | elsif slug.start_with? 'Functions_and_function_scope' | 36 | elsif slug.start_with?('Functions_and_function_scope') || slug.start_with?('Functions') |
| 35 | 'Function' | 37 | 'Function' |
| 36 | elsif slug.start_with? 'Global_Objects' | 38 | elsif slug.start_with? 'Global_Objects' |
| 37 | object, method = *slug.remove('Global_Objects/').split('/') | 39 | object, method = *slug.remove('Global_Objects/').split('/') |