File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
Rubberduck.RegexAssistant/Atoms Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -75,27 +75,26 @@ public string Description
75
75
{
76
76
return string . Format ( AssistantResources . AtomDescription_Literal_UnicodePoint , relevant . Substring ( 1 ) ) ; //skip u
77
77
}
78
- else if ( relevant . StartsWith ( "x" ) )
78
+
79
+ if ( relevant . StartsWith ( "x" ) )
79
80
{
80
81
return string . Format ( AssistantResources . AtomDescription_Literal_HexCodepoint , relevant . Substring ( 1 ) ) ; // skip x
81
82
}
82
- else
83
- {
84
- return string . Format ( AssistantResources . AtomDescription_Literal_OctalCodepoint , relevant ) ; // no format specifier to skip
85
- }
83
+
84
+ return string . Format ( AssistantResources . AtomDescription_Literal_OctalCodepoint , relevant ) ; // no format specifier to skip
86
85
}
87
- else if ( EscapeLiterals . Contains ( relevant [ 0 ] ) )
86
+
87
+ if ( EscapeLiterals . Contains ( relevant [ 0 ] ) )
88
88
{
89
89
return string . Format ( AssistantResources . AtomDescription_Literal_EscapedLiteral , relevant ) ;
90
90
}
91
- else if ( char . IsDigit ( relevant [ 0 ] ) )
91
+
92
+ if ( char . IsDigit ( relevant [ 0 ] ) )
92
93
{
93
94
return string . Format ( AssistantResources . AtomDescription_Literal_Backreference , relevant ) ;
94
95
}
95
- else
96
- {
97
- return _escapeDescriptions [ relevant [ 0 ] ] ;
98
- }
96
+
97
+ return _escapeDescriptions [ relevant [ 0 ] ] ;
99
98
}
100
99
101
100
if ( Specifier . Equals ( "." ) )
You can’t perform that action at this time.
0 commit comments