String parseJsString ( String jsStringLiteral ) throws ParseException { valueMatcher . reset ( jsStringLiteral ) ; if ( ! valueMatcher . matches ( ) ) { throw new ParseException ( "Syntax error in JS String literal" , true /* fatal */ ) ; } return valueMatcher . group ( 1 ) != null ? valueMatcher . group ( 1 ) : valueMatcher . group ( 2 ) ; }
Parses a JS string literal .