package Ġcom . el pass ion . main fr amer plugin . common . console Ċ Ċ class ĠRemote ToLocal Input Converter ( projectName : ĠString , Ġval Ġproject BasePath : ĠString ) Ġ{ ĊĠĠĠ Ġval ĠPATH Ġ= Ġ"/ [^ \\ s ]* " ĊĠĠĠ Ġprivate Ġval ĠFILE _ EXTENSION Ġ= Ġ"\\ .\\ w +" ĊĠĠĠ Ġprivate Ġval ĠEND _ PATH Ġ= Ġ" ($ PATH $ FILE _ EXTENSION )* " ĊĠĠĠ Ġprivate Ġval ĠRE MOTE _ START _ PATH Ġ= Ġ"( ?: $ PATH )? " ĊĠĠĠ Ġprivate Ġval ĠRE MOTE _ PATH Ġ= Ġ"$ REMOTE _ START _ PATH / main fr amer /$ projectName " ĊĠĠĠ Ġval ĠFILE _ PATH _ REGEX Ġ= Ġ"( ?: $ REMOTE _ PATH $ END _ PATH )" ĊĠĠĠ Ġprivate Ġval ĠLINE _ NUMBER _ START Ġ= Ġ" :( ?: \\ s \\ () ?" ĊĠĠĠ Ġprivate Ġval ĠLINE _ NUMBER _ VALUE Ġ= Ġ"( \\ d + )" ĊĠĠĠ Ġprivate Ġval ĠLINE _ NUMBER _ END Ġ= Ġ"( ?: , \\ s \\ d + \\ )) ?" ĊĠĠĠ Ġval ĠLINE _ NUMBER _ REGEX Ġ= Ġ"$ LINE _ NUMBER _ START $ LINE _ NUMBER _ VALUE $ LINE _ NUMBER _ END " ĊĠĠĠ Ġval ĠFIRST _ FRAGMENT _ REGEX Ġ= Ġ"( ?: .* ?: \\ s )? " ĊĠĠĠ Ġval ĠLINE _ WITH _ REMOTE _ EXCEPTION Ġ= Ġ"$ FIRST _ FRAGMENT _ REGEX $ FILE _ PATH _ REGEX $ LINE _ NUMBER _ REGEX ". to Regex () ĊĊĠĠĠ Ġfun Ġconvert Input ( input : ĠString ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ= ĠLINE _ WITH _ REMOTE _ EXCEPTION . replace ( input , Ġ"$ project BasePath $ 1 :$ 2 ") Ċ }