Showing the changes to lib/docs/filters/javascript (1 of 34 files). Show all
Unified · Split
| @@ -19,9 +19,9 @@ module Docs · 18 unmodified lines | ||
| 19 | 19 | name |
| 20 | 20 | else |
| 21 | 21 | name = super |
| 22 | − name.sub! 'Functions and function scope.', '' | |
| 23 | − name.sub! 'Operators.', '' | |
| 24 | − name.sub! 'Statements.', '' | |
| 22 | + name.remove! 'Functions and function scope.' | |
| 23 | + name.remove! 'Operators.' | |
| 24 | + name.remove! 'Statements.' | |
| 25 | 25 | name |
| 26 | 26 | end |
| 27 | 27 | end |
| @@ -34,7 +34,7 @@ module Docs · 6 unmodified lines | ||
| 34 | 34 | elsif slug.start_with? 'Functions_and_function_scope' |
| 35 | 35 | 'Function' |
| 36 | 36 | elsif slug.start_with? 'Global_Objects' |
| 37 | − object, method = *slug.sub('Global_Objects/', '').split('/') | |
| 37 | + object, method = *slug.remove('Global_Objects/').split('/') | |
| 38 | 38 | if object.end_with? 'Error' |
| 39 | 39 | 'Errors' |
| 40 | 40 | elsif INTL_OBJECTS.include?(object) |