Skip to content
Snippets Groups Projects
Commit ec145a0e authored by Chris Hines's avatar Chris Hines
Browse files

look for string equality not substring

parent 3b549cd0
No related branches found
No related tags found
4 merge requests!106if stat fails, display the error instead of immediately refreshing...,!99Dev,!77Test,!75Dev
Pipeline #12390 passed
......@@ -29,12 +29,8 @@ export class Strudelapp {
let uriname = decodeURIComponent(name);
for ( let item of applist) {
sapp = <Strudelapp>item;
//let sname = sapp.name.toLowerCase().replace(/\s/g, '');
//let jname = name.toLowerCase().replace(/\s/g, '');
let sname = sapp.name;
idx = sname.indexOf(jname);
idxURI = sname.indexOf(uriname);
if (idx == 0 || idxURI == 0) {
if (sname === jname || sname === uriname) {
app = item;
return app;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment