Commit ec145a0e authored by Chris Hines's avatar Chris Hines
Browse files

look for string equality not substring

parent 3b549cd0
Pipeline #12390 passed with stages
in 6 minutes and 42 seconds
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment