fortran-lang/fortran-lang.org

Search for c++ packages does not work correctly

Closed this issue · 5 comments

jme52 commented

One of the "Featured topics" on https://fortran-lang.org/packages/ is c++. However, the search page https://fortran-lang.org/packages/search/?query=c++ seems to list many packages that don't have c++ in their list of tags or descriptions. Is it possible that the search inputs are not properly escaped?

The Featured topics has changed it to cpp as that '+' in c++ was being termed as a space replacer and to join a line of words
by the script thus only rendering the results for "c " that is c with 2 spaces. that has been fixed by replacing c++ by cpp.
request to close this issue as it has been resolved.

Thanks and Regards,
Henil Panchal

@awvwgk @jme52 This issue has been resolved thus request to close this issue #217.

Thanks and Regards,
Henil Panchal

I think this issue is still present, since we do not properly escape a search like c++ at the moment.

sir I can make the search code so should i contribute it.
Thanks and Regards,
Henil Panchal

The package search is implemented here: https://github.com/fortran-lang/fortran-lang.org/blob/master/assets/js/package_search.js

Patches are welcome.