fix use of deprecated left =~ right