coherence
This commit is contained in:
parent
3666c19602
commit
4483bb5e13
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module Types
|
|||
|
||||
def self.can_parse?( value )
|
||||
# we systematically trim enclosing ()
|
||||
value = value[1..-2] if value.is_a?( String ) && (value[0] == '(') && (value[-1] == ')')
|
||||
value = value[1..-2] if value.is_a?( String ) && value[0] == '(' && value[-1] == ')'
|
||||
|
||||
!Complex( value, exception: false ).nil?
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue