Skip to content

Commit

Permalink
minor bug for multiple cleanid
Browse files Browse the repository at this point in the history
  • Loading branch information
rainer-prosi committed Apr 5, 2023
1 parent 05a4683 commit 7cbf19e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/cip4/tools/jdfeditor/menu/MenuTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.cip4.jdflib.core.JDFConstants;
import org.cip4.jdflib.core.JDFDoc;
import org.cip4.jdflib.core.KElement;
import org.cip4.jdflib.elementwalker.RemoveCompare;
Expand Down Expand Up @@ -291,7 +292,7 @@ void removeIDs()
removeCompare.setStandard();
removeCompare.cleanup(selectedNode);
String fn = ed.getOriginalFileName();
if (!"cleanid".equals(StringUtil.token(fn, -2, fn)))
if (!"cleanid".equals(StringUtil.token(fn, -2, JDFConstants.DOT)) && !"cleanid".equals(UrlUtil.prefix(fn)))
{
fn = UrlUtil.newExtension(fn, "cleanid." + UrlUtil.extension(fn));
}
Expand Down

0 comments on commit 7cbf19e

Please sign in to comment.