Révision 1507
| tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 1507) | ||
|---|---|---|
| 27 | 27 |
import org.txm.objects.Project; |
| 28 | 28 |
import org.txm.objects.Workspace; |
| 29 | 29 |
import org.txm.stat.utils.LogMonitor; |
| 30 |
import org.txm.utils.AsciiUtils; |
|
| 30 | 31 |
import org.txm.utils.logger.Log; |
| 31 | 32 |
|
| 32 | 33 |
// FIXME: At this moment, an empty list is created for children, to not return |
| ... | ... | |
| 1838 | 1839 |
// FIXME: to discuss and/or to move in export layer |
| 1839 | 1840 |
public String getValidFileName() {
|
| 1840 | 1841 |
try {
|
| 1841 |
return FILE_NAME_PATTERN.matcher(this.getCurrentName()).replaceAll(UNDERSCORE); |
|
| 1842 |
//return FILE_NAME_PATTERN.matcher(this.getCurrentName()).replaceAll(UNDERSCORE); |
|
| 1843 |
return this.getCurrentName().replaceAll("[¤€§µ£°().,;:/?§%\"'*+\\-}\\]\\[{#~&]", "");
|
|
| 1842 | 1844 |
} catch (Exception e) {
|
| 1843 | 1845 |
Log.printStackTrace(e); |
| 1844 | 1846 |
} |
Formats disponibles : Unified diff