Only trim whitespace outside of the json

This commit is contained in:
dotasek 2023-08-03 16:38:42 -04:00
parent 6d0883468b
commit f835c7efe4
1 changed files with 1 additions and 4 deletions

View File

@ -695,10 +695,7 @@ public class TerminologyCache {
}
protected String hashJson(String s) {
// s = StringUtils.remove(s, ' ');
s = StringUtils.remove(s, '\n');
s = StringUtils.remove(s, '\r');
return String.valueOf(s.hashCode());
return String.valueOf(s.trim().hashCode());
}
// management