parseOrgLocalSectionSearch function

String parseOrgLocalSectionSearch(
  1. String query
)

Return the title of the section pointed to by the query. The query must be one for which isOrgLocalSectionSearch returns true.

Implementation

String parseOrgLocalSectionSearch(String query) {
  assert(isOrgLocalSectionSearch(query));
  return query.substring(1).replaceAll(RegExp('[ \t]*\r?\n[ \t]*'), ' ');
}