Skip to content
Snippets Groups Projects
Commit 20184a8b authored by gmantele's avatar gmantele
Browse files

[ADQL] Correct the built-in regular expression for allowed STCS coordinate systems.

parent bf9f86d3
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ import adql.query.operand.function.geometry.RegionFunction; ...@@ -78,7 +78,7 @@ import adql.query.operand.function.geometry.RegionFunction;
* </i></p> * </i></p>
* *
* @author Gr&eacute;gory Mantelet (ARI) * @author Gr&eacute;gory Mantelet (ARI)
* @version 1.3 (10/2014) * @version 1.3 (12/2014)
* @since 1.3 * @since 1.3
*/ */
public final class STCS { public final class STCS {
...@@ -538,9 +538,9 @@ public final class STCS { ...@@ -538,9 +538,9 @@ public final class STCS {
} }
// The final regular expression must be reduced to a coordinate system and nothing else after: // The final regular expression must be reduced to a coordinate system and nothing else after:
finalRegExp.append(")\\s*"); finalRegExp.append(")\\s*$");
return (nbCoordSys > 0) ? finalRegExp.append(")$").toString() : defaultCoordSysRegExp; return (nbCoordSys > 0) ? finalRegExp.toString() : defaultCoordSysRegExp;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment