Closed markusheikkinen closed 6 years ago
Do you have a suggestion to enhance the regexp?
If space after "widgetset:" is optional then regexp could be changed by adding optional whitespace character (\s?) to pattern. When I tried with simple test-class I had to include .*
at the end of regexp.
Pattern p = Pattern.compile(".*widgetset\":\\s?\"([^\"]+)\".*", Pattern.DOTALL);
This is what I was writing yesterday but noticed that you already closed the issue with a change that allows whitespaces, Thanks.
Yep, cutting a release right now.
Now this works with production mode as well as in debug mode, at least in our test project.
When using TouchKit application with Chrome WidgetSet name parsing fails. Name is parsed using regex
There is space after colon. This fails on getting group(1) from matcher when application is in production mode. Response data contains then
"versionInfo":{"vaadinVersion":"8.4.2"},"widgetset":"com....WidgetSet"
In development mode the response is formatted and there is space after colon and name parsing works ok. Line-breaks are removed before regex handling (with TODO comments).